ALSA: line6: Abort if inconsistent usbdev is found at disconnect
authorTakashi Iwai <tiwai@suse.de>
Tue, 20 Jan 2015 08:58:54 +0000 (09:58 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 28 Jan 2015 06:19:29 +0000 (07:19 +0100)
commit2a324fcdb568f4d7b0b65b271039beb987f6e1cd
treebcef41067ca5ad1729e279bc31433664e76f1fc3
parent270fd9c7f91fe8be900ede740ceeaa4abefa5d98
ALSA: line6: Abort if inconsistent usbdev is found at disconnect

It's utterly unsafe to proceed further the disconnect procedure if the
assigned usbdev is inconsistent with the expected object.  Better to
put a WARN_ON() for more cautions and abort immediately.

Tested-by: Chris Rorvick <chris@rorvick.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/line6/driver.c