Hans Verkuil 3650a23eda media: vimc: free vimc_cap_device when the last user disappears
Don't free vimc_cap_device immediately, instead do this
in the video_device release function which is called when the
last user closes the video device. Only then is it safe to
free the memory.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2019-03-19 13:31:37 -04:00
..
2019-03-01 09:35:21 -05:00
2019-03-01 09:35:21 -05:00
2019-03-01 09:35:21 -05:00
2019-03-01 09:35:21 -05:00
2019-03-10 10:58:43 -07:00
2019-03-01 09:35:21 -05:00
2019-03-01 09:35:21 -05:00
2019-03-01 09:35:21 -05:00
2019-03-01 09:35:21 -05:00
2019-03-01 09:35:21 -05:00
2018-10-31 10:53:29 -07:00
2018-11-23 05:42:49 -05:00