Searched hist:"649 cd16c438f51d4cd777e71ca1f47f6e0c5e65d" (Results 1 – 1 of 1) sorted by relevance
/linux/drivers/media/usb/b2c2/ |
H A D | flexcop-usb.c | diff 649cd16c438f51d4cd777e71ca1f47f6e0c5e65d Tue Sep 24 11:49:04 CEST 2019 Yang Yingliang <yangyingliang@huawei.com> media: flexcop-usb: fix NULL-ptr deref in flexcop_usb_transfer_init()
If usb_set_interface() failed, iface->cur_altsetting will not be assigned and it will be used in flexcop_usb_transfer_init() It may lead a NULL pointer dereference.
Check usb_set_interface() return value in flexcop_usb_init() and return failed to avoid using this NULL pointer.
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com> Signed-off-by: Sean Young <sean@mess.org> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
|