]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: usb-audio: Add sanity checks for invalid EPs
authorTakashi Iwai <tiwai@suse.de>
Wed, 4 Oct 2017 15:22:05 +0000 (17:22 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 11 Oct 2017 13:14:51 +0000 (15:14 +0200)
commit847f6994c23df1ad4ccf03d1acfbfe6635e32858
tree0a1a1681acb0576176c90dca28fac2fa14684d81
parentaa2398f9adf51f9ebfcb6e447be7d49aea56cb49
ALSA: usb-audio: Add sanity checks for invalid EPs

USB-audio driver may set up a URB containing the fixed EP without
validating its presence for some non-class-compliant devices.  This
may end up with an oops-like kernel warning when submitted.

For avoiding it, this patch adds the call of the new sanity-check
helper for URBs.  The checks are needed only for MIDI I/O as the other
places have already some other checks.

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