diff options
author | Hans Verkuil <hverkuil-cisco@xs4all.nl> | 2019-02-21 08:35:15 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2019-03-19 13:23:19 -0400 |
commit | ea6c7e34f3b28e165988aa7391310752969842e8 (patch) | |
tree | e0e6bcb7ca606603454ae9365ce041c4b46e6e1b /include | |
parent | 57ac534828798affcf13b6f9122dfac7bf135dd0 (diff) |
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 <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 'include')
0 files changed, 0 insertions, 0 deletions