From: Daniel Lezcano <daniel.lezcano@linaro.org>
To: Malaya Kumar Rout <mrout@redhat.com>, linux-kernel@vger.kernel.org
Cc: malayarout91@gmail.com, "Rafael J. Wysocki" <rafael@kernel.org>,
Zhang Rui <rui.zhang@intel.com>,
Lukasz Luba <lukasz.luba@arm.com>,
linux-pm@vger.kernel.org
Subject: Re: [PATCH] tools/thermal/thermal-engine: Fix format string bug in thermal-engine
Date: Tue, 25 Nov 2025 10:00:50 +0100 [thread overview]
Message-ID: <d53b5b10-00b6-48bb-8d69-660cbf757ec2@linaro.org> (raw)
In-Reply-To: <20251124104401.374856-1-mrout@redhat.com>
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@redhat.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
prev parent reply other threads:[~2025-11-25 9:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-24 10:43 Malaya Kumar Rout
2025-11-25 9:00 ` Daniel Lezcano [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d53b5b10-00b6-48bb-8d69-660cbf757ec2@linaro.org \
--to=daniel.lezcano@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=lukasz.luba@arm.com \
--cc=malayarout91@gmail.com \
--cc=mrout@redhat.com \
--cc=rafael@kernel.org \
--cc=rui.zhang@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®