diff options
| author | Hans de Goede <[email protected]> | 2023-05-18 15:15:07 +0100 |
|---|---|---|
| committer | Mauro Carvalho Chehab <[email protected]> | 2023-06-09 14:57:12 +0100 |
| commit | 2746a966f9f05fdb0727f4e1e8f2d51ec79e071d (patch) | |
| tree | d8a3653765161eed08c977756b4c3da6f36f1bde /tools/perf/scripts/python | |
| parent | 76d2d7d6afae2fe5bd7f8e441e9944c6ac8f10dc (diff) | |
media: atomisp: gc0310: Fix double free in gc0310_remove()
gc0310_remove() must not call kfree(dev) since the gc0310_device struct
is devm managed so explicitly freeing it causes a double free.
While at it add a missing mutex_destroy() call for the input_lock.
Link: https://lore.kernel.org/r/[email protected]
Fixes: 340b4dd6c183 ("media: atomisp: gc0310: Use devm_kzalloc() for data struct")
Reviewed-by: Andy Shevchenko <[email protected]>
Signed-off-by: Hans de Goede <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions