diff options
| author | Laurent Pinchart <[email protected]> | 2020-07-06 20:36:18 +0200 |
|---|---|---|
| committer | Mauro Carvalho Chehab <[email protected]> | 2020-07-19 09:39:01 +0200 |
| commit | d3665f3b7c08bc50f97b2f308f4b745f7e80b3e8 (patch) | |
| tree | c6de29827329bcd4349b8b20bc3338d85ceaeb15 /tools/perf/scripts/python/futex-contention.py | |
| parent | 6675e871ca4dab14e849298767d34c2722f3ee1e (diff) | |
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 <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/futex-contention.py')
0 files changed, 0 insertions, 0 deletions