Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
media: flexcop-usb: fix endpoint sanity check
commit 1b976fc ("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: 1b976fc ("media: b2c2-flexcop-usb: add sanity checking") Cc: Oliver Neukum <[email protected]> Cc: stable <[email protected]> Signed-off-by: Johan Hovold <[email protected]> Signed-off-by: Sean Young <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
- Loading branch information