diff options
| author | Hans Verkuil <[email protected]> | 2019-02-21 13:47:28 +0000 |
|---|---|---|
| committer | Mauro Carvalho Chehab <[email protected]> | 2019-03-19 17:31:37 +0000 |
| commit | 3650a23eda89f99b964fbd63a20320fafaa73e33 (patch) | |
| tree | dc4b31a232ce48d5e144ca9f6a5c13e37b8e33f2 /drivers/media/platform/vimc/vimc-common.c | |
| parent | media: vimc: zero the media_device on probe (diff) | |
| download | kernel-3650a23eda89f99b964fbd63a20320fafaa73e33.tar.gz kernel-3650a23eda89f99b964fbd63a20320fafaa73e33.zip | |
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 <[email protected]>
Reviewed-by: Laurent Pinchart <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'drivers/media/platform/vimc/vimc-common.c')
0 files changed, 0 insertions, 0 deletions
