ALSA: line6: Add yet more sanity checks for invalid EPs
authorTakashi Iwai <tiwai@suse.de>
Tue, 10 Oct 2017 10:35:46 +0000 (12:35 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 11 Oct 2017 14:59:29 +0000 (16:59 +0200)
commit4f95646c803f6a534e58b1d33afbfdaf3e122328
tree9d145790711b0dcdabdf2e864fea81a680bd5b4a
parent96cd79626fc3fe5d77c243785368679e9b313642
ALSA: line6: Add yet more sanity checks for invalid EPs

There are a few other places calling usb_submit_urb() with the URB
composed from the fixed endpoint without validation.  For avoiding the
spurious kernel warnings, add the sanity checks to appropriate
places.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/line6/driver.c
sound/usb/line6/midi.c