From: Markus Elfring <Markus.Elfring@web.de>
To: Charles Han <hanchunchao@inspur.com>
Cc: LKML <linux-kernel@vger.kernel.org>,
linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
Alyssa Rosenzweig <alyssa@rosenzweig.io>,
Hector Martin <marcan@marcan.st>, Marc Zyngier <maz@kernel.org>,
"Rafael J. Wysocki" <rafael@kernel.org>,
Sven Peter <sven@svenpeter.dev>,
Viresh Kumar <viresh.kumar@linaro.org>
Subject: Re: [v2] cpufreq: apple-soc: Prevent null pointer dereference in apple_soc_cpufreq_get_rate()
Date: Mon, 30 Dec 2024 13:12:17 +0100 [thread overview]
Message-ID: <4468a196-ad5c-420e-aad3-becbd64279d2@web.de> (raw)
In-Reply-To: <20241230091053.247719-1-hanchunchao@inspur.com>
> cpufreq_cpu_get_raw() may return NULL if the cpu is not in
> policy->cpus cpu mask and it will cause null pointer dereference.
> Prevent null pointer dereference in apple_soc_cpufreq_get_rate().
…
> ---
> drivers/cpufreq/apple-soc-cpufreq.c | 3 +++
> 1 file changed, 3 insertions(+)
It can be helpful to provide a corresponding patch version description.
https://lore.kernel.org/all/?q=%22This+looks+like+a+new+version+of+a+previously+submitted+patch%22
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?h=v6.13-rc5#n310
Regards,
Markus
prev parent reply other threads:[~2024-12-30 12:12 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-30 9:10 [PATCH v2] " Charles Han
2024-12-30 12:12 ` Markus Elfring [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=4468a196-ad5c-420e-aad3-becbd64279d2@web.de \
--to=markus.elfring@web.de \
--cc=alyssa@rosenzweig.io \
--cc=hanchunchao@inspur.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=marcan@marcan.st \
--cc=maz@kernel.org \
--cc=rafael@kernel.org \
--cc=sven@svenpeter.dev \
--cc=viresh.kumar@linaro.org \
/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®