This is an automatic generated email to let you know that the following patch were queued:
Subject: media: b2c2-flexcop-usb: add sanity checking Author: Oliver Neukum <oneu...@suse.com> Date: Tue Jul 30 09:48:27 2019 +0200 The driver needs an isochronous endpoint to be present. It will oops in its absence. Add checking for it. Reported-by: syzbot+d93dff37e6a89431c...@syzkaller.appspotmail.com Signed-off-by: Oliver Neukum <oneu...@suse.com> Signed-off-by: Sean Young <s...@mess.org> Signed-off-by: Mauro Carvalho Chehab <mche...@kernel.org> drivers/media/usb/b2c2/flexcop-usb.c | 3 +++ 1 file changed, 3 insertions(+) --- diff --git a/drivers/media/usb/b2c2/flexcop-usb.c b/drivers/media/usb/b2c2/flexcop-usb.c index 4bf85e9b78b8..d1331f828108 100644 --- a/drivers/media/usb/b2c2/flexcop-usb.c +++ b/drivers/media/usb/b2c2/flexcop-usb.c @@ -544,6 +544,9 @@ static int flexcop_usb_probe(struct usb_interface *intf, struct flexcop_device *fc = NULL; int ret; + if (intf->cur_altsetting->desc.bNumEndpoints < 1) + return -ENODEV; + if ((fc = flexcop_device_kmalloc(sizeof(struct flexcop_usb))) == NULL) { err("out of memory\n"); return -ENOMEM; _______________________________________________ linuxtv-commits mailing list linuxtv-commits@linuxtv.org https://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits