aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorArmin Wolf <[email protected]>2023-03-31 21:33:19 +0000
committerHans de Goede <[email protected]>2023-04-03 09:35:53 +0000
commita3c4c053014585dcf20f4df954791b74d8a8afcd (patch)
tree82bc7437bbf87af6eef5bf116430426ec5bd3f56 /tools/perf/scripts/python
parentplatform/x86: ideapad-laptop: Stop sending KEY_TOUCHPAD_TOGGLE (diff)
downloadkernel-a3c4c053014585dcf20f4df954791b74d8a8afcd.tar.gz
kernel-a3c4c053014585dcf20f4df954791b74d8a8afcd.zip
platform/x86: think-lmi: Fix memory leak when showing current settings
When retriving a item string with tlmi_setting(), the result has to be freed using kfree(). In current_value_show() however, malformed item strings are not freed, causing a memory leak. Fix this by eliminating the early return responsible for this. Reported-by: Mirsad Goran Todorovac <[email protected]> Link: https://lore.kernel.org/platform-driver-x86/[email protected]/T/#t Tested-by: Mirsad Goran Todorovac <[email protected]> Fixes: 0fdf10e5fc96 ("platform/x86: think-lmi: Split current_value to reflect only the value") Signed-off-by: Armin Wolf <[email protected]> Link: https://lore.kernel.org/r/[email protected] Tested-by: Mario Limonciello <[email protected]> Reviewed-by: Hans de Goede <[email protected]> Signed-off-by: Hans de Goede <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions