summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorFlorian Eckert <fe@dev.tdt.de>2023-11-27 11:16:21 +0300
committerLee Jones <lee@kernel.org>2023-12-13 14:28:43 +0300
commit25054b232681c286fca9c678854f56494d1352cc (patch)
tree7a4b3b074432ff221c35dea0a21f694aacc87d02 /tools/perf/scripts/python/export-to-postgresql.py
parent736214b4b02adf8734206599e36e2081d47554a2 (diff)
downloadlinux-25054b232681c286fca9c678854f56494d1352cc.tar.xz
leds: ledtrig-tty: Free allocated ttyname buffer on deactivate
The ttyname buffer for the ledtrig_tty_data struct is allocated in the sysfs ttyname_store() function. This buffer must be released on trigger deactivation. This was missing and is thus a memory leak. While we are at it, the TTY handler in the ledtrig_tty_data struct should also be returned in case of the trigger deactivation call. Cc: stable@vger.kernel.org Fixes: fd4a641ac88f ("leds: trigger: implement a tty trigger") Signed-off-by: Florian Eckert <fe@dev.tdt.de> Reviewed-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Link: https://lore.kernel.org/r/20231127081621.774866-1-fe@dev.tdt.de Signed-off-by: Lee Jones <lee@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions