aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/platform/vimc/vimc-common.c
diff options
context:
space:
mode:
authorHans Verkuil <[email protected]>2019-02-21 13:35:15 +0000
committerMauro Carvalho Chehab <[email protected]>2019-03-19 17:23:19 +0000
commitea6c7e34f3b28e165988aa7391310752969842e8 (patch)
treee0e6bcb7ca606603454ae9365ce041c4b46e6e1b /drivers/media/platform/vimc/vimc-common.c
parentmedia: vivid: use vzalloc for dev->bitmap_out (diff)
downloadkernel-ea6c7e34f3b28e165988aa7391310752969842e8.tar.gz
kernel-ea6c7e34f3b28e165988aa7391310752969842e8.zip
media: vim2m: replace devm_kzalloc by kzalloc
It is not possible to use devm_kzalloc since that memory is freed immediately when the device instance is unbound. Various objects like the video device may still be in use since someone has the device node open, and when that is closed it expects the memory to be around. So use kzalloc and release it at the appropriate time. 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