media: b2c2-flexcop-usb: add sanity checking
commit89660684ceca03bcaf5d1637709a4875e98387c6
authorOliver Neukum <oneukum@suse.com>
Tue, 30 Jul 2019 07:48:27 +0000 (30 09:48 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Nov 2019 17:26:19 +0000 (28 18:26 +0100)
treea4b4d599d2a7fb7b3fb55252ac8ab380bdde615b
parent71941ad643fd18ef59b00b745e6b9967feffaccb
media: b2c2-flexcop-usb: add sanity checking

commit 1b976fc6d684e3282914cdbe7a8d68fdce19095c upstream.

The driver needs an isochronous endpoint to be present. It will
oops in its absence. Add checking for it.

Reported-by: syzbot+d93dff37e6a89431c158@syzkaller.appspotmail.com
Signed-off-by: Oliver Neukum <oneukum@suse.com>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/media/usb/b2c2/flexcop-usb.c