aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorHans Verkuil <[email protected]>2021-04-08 12:31:20 +0200
committerMauro Carvalho Chehab <[email protected]>2021-04-09 13:19:38 +0200
commit4f4e6644cd876c844cdb3bea2dd7051787d5ae25 (patch)
treea938682e10b0496eac7d6c63e7a34c24f3b73fbe /tools/perf/scripts/python/exported-sql-viewer.py
parent98965af1ebc3a652a597cee902f462f496ef9e11 (diff)
media: gscpa/stv06xx: fix memory leak
For two of the supported sensors the stv06xx driver allocates memory which is stored in sd->sensor_priv. This memory is freed on a disconnect, but if the probe() fails, then it isn't freed and so this leaks memory. Add a new probe_error() op that drivers can use to free any allocated memory in case there was a probe failure. Thanks to Pavel Skripkin <[email protected]> for discovering the cause of the memory leak. Reported-and-tested-by: [email protected] Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions