ALSA: usx2y: Add sanity checks for invalid EPs
authorTakashi Iwai <tiwai@suse.de>
Wed, 4 Oct 2017 15:58:41 +0000 (17:58 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 11 Oct 2017 14:52:33 +0000 (16:52 +0200)
commit1f10034938e7e1aa787a683cb56cdee3595f29b4
treea79ad91f4e0a9915e46db03106a95a8ec20403ff
parent738d9edcfd44f154924692e54109fb439fcf8bdd
ALSA: usx2y: Add sanity checks for invalid EPs

usx2y driver sets up URBs containing the fixed endpoints without
validation.  This may end up with an oops-like kernel warning when
submitted.

For avoiding it, this patch adds the calls of the new sanity-check
helper for URBs.

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