media: b2c2-flexcop-usb: add sanity checking
authorOliver Neukum <oneukum@suse.com>
Tue, 30 Jul 2019 07:48:27 +0000 (09:48 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 1 Dec 2019 08:17:39 +0000 (09:17 +0100)
commit8b42c263ec1a348bf098e6255407486c1bf17ece
tree3c24c1db4cd6ac5404aef97be05495240763936d
parent56be9f1b8733395caf570a80aa97d30e1fc61c28
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