Home
last modified time | relevance | path

Searched hist:bca243b1ce0e46be26f7c63b5591dfbb41f558e5 (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/media/usb/b2c2/
H A Dflexcop-usb.cdiff bca243b1ce0e46be26f7c63b5591dfbb41f558e5 Fri Jan 03 17:35:08 CET 2020 Johan Hovold <johan@kernel.org> media: flexcop-usb: fix endpoint sanity check

commit 1b976fc6d684 ("media: b2c2-flexcop-usb: add sanity checking") added
an endpoint sanity check to address a NULL-pointer dereference on probe.
Unfortunately the check was done on the current altsetting which was later
changed.

Fix this by moving the sanity check to after the altsetting is changed.

Fixes: 1b976fc6d684 ("media: b2c2-flexcop-usb: add sanity checking")
Cc: Oliver Neukum <oneukum@suse.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>