diff options
author | Zhipeng Lu <[email protected]> | 2023-12-01 21:22:55 +0800 |
---|---|---|
committer | Hans Verkuil <[email protected]> | 2023-12-07 08:31:15 +0100 |
commit | 5d3c8990e2bbf929cb211563dadd70708f42e4e6 (patch) | |
tree | f5ec1a14765ab9a03948f6e6bd0fff601f62f6b0 /tools/perf/scripts/python/event_analyzing_sample.py | |
parent | b58253793f4fe7495af3157d7f29cf0919183009 (diff) |
media: cx231xx: fix a memleak in cx231xx_init_isoc
The dma_q->p_left_data alloced by kzalloc should be freed in all the
following error handling paths. However, it hasn't been freed in the
allocation error paths of dev->video_mode.isoc_ctl.urb and
dev->video_mode.isoc_ctl.transfer_buffer.
On the other hand, the dma_q->p_left_data did be freed in the
error-handling paths after that of dev->video_mode.isoc_ctl.urb and
dev->video_mode.isoc_ctl.transfer_buffer, by calling
cx231xx_uninit_isoc(dev). So the same free operation should be done in
error-handling paths of those two allocation.
Fixes: 64fbf4445526 ("[media] cx231xx: Added support for Carraera, Shelby, RDx_253S and VIDEO_GRABBER")
Signed-off-by: Zhipeng Lu <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions