media: uvcvideo: Fix access to uninitialized fields on probe error
authorOliver Neukum <oneukum@suse.com>
Tue, 30 Apr 2019 12:28:14 +0000 (08:28 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 26 Jul 2019 07:14:06 +0000 (09:14 +0200)
commit63e53991d791860131ce7bcf5c7f12704420c7c8
tree8c96066a6db1dc583732c2f768c10b9609204578
parentc844f4da9b92e689fc447a52d5996fd361a9d567
media: uvcvideo: Fix access to uninitialized fields on probe error

[ Upstream commit 11a087f484bf15ff65f0a9f277aa5a61fd07ed2a ]

We need to check whether this work we are canceling actually is
initialized.

Signed-off-by: Oliver Neukum <oneukum@suse.com>
Reported-by: syzbot+2e1ef9188251d9cc7944@syzkaller.appspotmail.com
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/media/usb/uvc/uvc_ctrl.c