diff options
author | Hans Verkuil <hverkuil-cisco@xs4all.nl> | 2019-02-21 08:47:28 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2019-03-19 13:31:37 -0400 |
commit | 3650a23eda89f99b964fbd63a20320fafaa73e33 (patch) | |
tree | dc4b31a232ce48d5e144ca9f6a5c13e37b8e33f2 /drivers/media/platform/vimc/vimc-common.h | |
parent | f74267b51cb36321f777807b2e04ca02167ecc08 (diff) |
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>
Diffstat (limited to 'drivers/media/platform/vimc/vimc-common.h')
0 files changed, 0 insertions, 0 deletions