[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <d53b5b10-00b6-48bb-8d69-660cbf757ec2@linaro.org>
Date: Tue, 25 Nov 2025 10:00:50 +0100
From: Daniel Lezcano <daniel.lezcano@...aro.org>
To: Malaya Kumar Rout <mrout@...hat.com>, linux-kernel@...r.kernel.org
Cc: malayarout91@...il.com, "Rafael J. Wysocki" <rafael@...nel.org>,
Zhang Rui <rui.zhang@...el.com>, Lukasz Luba <lukasz.luba@....com>,
linux-pm@...r.kernel.org
Subject: Re: [PATCH] tools/thermal/thermal-engine: Fix format string bug in
thermal-engine
On 11/24/25 11:43, Malaya Kumar Rout wrote:
> The error message in the daemon() failure path uses %p format specifier
> without providing a corresponding pointer argument, resulting in undefined
> behavior and printing garbage values.
>
> Replace %p with %m to properly print the errno error message, which is
> the intended behavior when daemon() fails.
>
> This fix ensures proper error reporting when daemonization fails.
>
> Signed-off-by: Malaya Kumar Rout <mrout@...hat.com>
> ---
Applied, thanks
--
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs
Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog
Powered by blists - more mailing lists