Home
last modified time | relevance | path

Searched hist:"8 c279e9394cade640ed86ec6c6645a0e7df5e0b6" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/media/usb/uvc/
H A Duvc_driver.cdiff 8c279e9394cade640ed86ec6c6645a0e7df5e0b6 Mon Jul 29 21:14:55 CDT 2019 Laurent Pinchart <laurent.pinchart@ideasonboard.com> 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>