diff options
| author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2020-07-06 20:36:18 +0200 |
|---|---|---|
| committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2020-07-19 09:39:01 +0200 |
| commit | d3665f3b7c08bc50f97b2f308f4b745f7e80b3e8 (patch) | |
| tree | c6de29827329bcd4349b8b20bc3338d85ceaeb15 /include/linux/timerqueue.h | |
| parent | 6675e871ca4dab14e849298767d34c2722f3ee1e (diff) | |
| download | cachepc-linux-d3665f3b7c08bc50f97b2f308f4b745f7e80b3e8.tar.gz cachepc-linux-d3665f3b7c08bc50f97b2f308f4b745f7e80b3e8.zip | |
media: ti-vpe: cal: Add cal_camerarx_destroy() to cleanup CAMERARX
The cal_camerarx_create() function allocates resources with devm_*, and
thus doesn't need any manual cleanup. Those won't hold true for long, as
we will need to store resources that have no devm_* allocation variant
in cal_camerarx. Furthermore, devm_kzalloc() is the wrong memory
allocation API for structures that can be accessed from userspace, as
device nodes can be kept open across device removal.
Add a cal_camerarx_destroy() function to destroy a CAMERARX instance
explicitly, and switch to kzalloc() for memory allocation.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions
