summaryrefslogtreecommitdiff
path: root/scripts/stackusage
diff options
context:
space:
mode:
authorDaniel Lezcano <daniel.lezcano@linaro.org>2024-10-24 12:59:38 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-12-05 14:01:21 +0100
commitad3dad3f152e9225572c13955d1ae249f46d7d06 (patch)
tree0300fcd23e054e180ee45470abda4a985c5e9a7f /scripts/stackusage
parentfe122921b15af888a9fa8bff13cc2695e8be81c5 (diff)
downloadlinux-ad3dad3f152e9225572c13955d1ae249f46d7d06.tar.gz
linux-ad3dad3f152e9225572c13955d1ae249f46d7d06.tar.bz2
linux-ad3dad3f152e9225572c13955d1ae249f46d7d06.zip
thermal/lib: Fix memory leak on error in thermal_genl_auto()
[ Upstream commit 7569406e95f2353070d88ebc88e8c13698542317 ] The function thermal_genl_auto() does not free the allocated message in the error path. Fix that by putting a out label and jump to it which will free the message instead of directly returning an error. Fixes: 47c4b0de080a ("tools/lib/thermal: Add a thermal library") Reported-by: Lukasz Luba <lukasz.luba@arm.com> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> Reviewed-by: Lukasz Luba <lukasz.luba@arm.com> Link: https://patch.msgid.link/20241024105938.1095358-1-daniel.lezcano@linaro.org [ rjw: Fixed up the !msg error path, added Fixes tag ] Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'scripts/stackusage')
0 files changed, 0 insertions, 0 deletions