summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorChen Changcheng <chenchangcheng@kylinos.cn>2026-07-24 10:52:18 +0800
committerHans Verkuil <hverkuil+cisco@kernel.org>2026-07-28 15:17:55 +0200
commite228b8b1a5b47a72b265671dc6d864c0da5528d0 (patch)
tree9bcea1c538ae79e5e88bf574a38b359ebbed26ef /tools/perf/scripts/python
parent9508676ad8562368bb1aa7d1991fbd50611ddacb (diff)
media: cx88: fix memory leak in cx8802_register_driver() error path
In cx8802_register_driver(), when drv->probe(driver) fails (non-zero), the allocated cx8802_driver struct is freed neither in the else branch nor later in cx8802_unregister_driver() (which only frees entries that were added to dev->drvlist on success). Each failed probe leaks the driver struct. Add kfree(driver) in the else branch to fix the leak. Signed-off-by: Chen Changcheng <chenchangcheng@kylinos.cn> Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions