summaryrefslogtreecommitdiffstats
path: root/drivers/media/usb/tm6000
diff options
context:
space:
mode:
authorDan Carpenter2017-09-22 15:48:41 +0200
committerMauro Carvalho Chehab2017-12-08 16:06:46 +0100
commit6e298d58473520a806d59b7aa51dcb194d1a1b03 (patch)
tree6a76dff03c1d938926aa62a7e9b65a7ce324ea38 /drivers/media/usb/tm6000
parentmedia: hdpvr: Fix an error handling path in hdpvr_probe() (diff)
downloadkernel-qcow2-linux-6e298d58473520a806d59b7aa51dcb194d1a1b03.tar.gz
kernel-qcow2-linux-6e298d58473520a806d59b7aa51dcb194d1a1b03.tar.xz
kernel-qcow2-linux-6e298d58473520a806d59b7aa51dcb194d1a1b03.zip
media: stk-webcam: Fix use after free on disconnect
We free the stk_camera device too early. It's allocate first in probe and it should be freed last in stk_camera_disconnect(). Reported-by: Andrey Konovalov <andreyknvl@google.com> Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/usb/tm6000')
0 files changed, 0 insertions, 0 deletions