On Mon, 27 Nov 2023 09:16:21 +0100, Florian Eckert wrote:
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.
[...]
Applied, thanks!
[1/1] leds: ledtrig-tty: free allocated ttyname buffer on deactivate commit: dcc9a56adb91830b14e4838de95d3e85db35a0f4
-- Lee Jones [李琼斯]