diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2019-07-29 23:14:55 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2019-10-16 16:33:58 -0300 |
commit | 8c279e9394cade640ed86ec6c6645a0e7df5e0b6 (patch) | |
tree | f2aa9f45b2bcf513a8e5ca7ecd27a1fd9ff84afa /drivers/media/usb/go7007 | |
parent | d9aeaa6d4ca44df5fae745fd47aede8b3f6137f1 (diff) | |
download | linux-8c279e9394cade640ed86ec6c6645a0e7df5e0b6.tar.bz2 |
media: uvcvideo: Fix error path in control parsing failure
When parsing the UVC control descriptors fails, the error path tries to
cleanup a media device that hasn't been initialised, potentially
resulting in a crash. Fix this by initialising the media device before
the error handling path can be reached.
Fixes: 5a254d751e52 ("[media] uvcvideo: Register a v4l2_device")
Reported-by: syzbot+c86454eb3af9e8a4da20@syzkaller.appspotmail.com
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers/media/usb/go7007')
0 files changed, 0 insertions, 0 deletions