Files
rockchip-kernel/drivers
Philipp Zabel f9ffcb0a21 media: uvcvideo: Fix driver reference counting
kref_init initializes the reference count to 1, not 0. This additional
reference is never released since the conversion to reference counters.
As a result, uvc_delete is not called anymore when UVC cameras are
disconnected.
Fix this by adding an additional kref_put in uvc_disconnect and in the
probe error path. This also allows to remove the temporary additional
reference in uvc_unregister_video.

Fixes: 9d15cd958c ("media: uvcvideo: Convert from using an atomic variable to a reference count")

Signed-off-by: Philipp Zabel <philipp.zabel@gmail.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2018-05-28 16:49:47 -04:00
..
2018-04-19 15:11:50 -07:00
2018-03-27 09:51:22 +02:00
2018-04-27 14:12:43 +02:00
2018-04-12 21:46:10 -04:00
2018-03-19 14:20:24 -05:00
2018-04-18 23:37:25 -04:00
2018-05-02 21:47:35 +02:00
2018-03-29 13:38:10 +03:00