From: Stephen Boyd <sboyd@kernel.org>
To: Charles Han <hanchunchao@inspur.com>,
david@lechnology.com, mturquette@baylibre.com, sboyd@kernel.orgv
Cc: linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org,
Charles Han <hanchunchao@inspur.com>
Subject: Re: [PATCH] clk: davinci: Add NULL check in davinci_lpsc_clk_register
Date: Thu, 14 Nov 2024 12:32:18 -0800 [thread overview]
Message-ID: <d7cd72829cfd4ee9bd880d6d32e4dbc1.sboyd@kernel.org> (raw)
In-Reply-To: <20241114091422.75412-1-hanchunchao@inspur.com>
Quoting Charles Han (2024-11-14 01:14:22)
> devm_kasprintf() can return a NULL pointer on failure,but this
> returned value in davinci_lpsc_clk_register() is not checked.
> Add NULL check in davinci_lpsc_clk_register(), to handle kernel NULL
> pointer dereference error.
>
> Fixes: c6ed4d734bc7 ("clk: davinci: New driver for davinci PSC clocks")
> Signed-off-by: Charles Han <hanchunchao@inspur.com>
> ---
Applied to clk-next
next prev parent reply other threads:[~2024-11-14 20:32 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-14 9:14 [PATCH] clk: davinci: Add NULL check in davinci_lpsc_clk_register Charles Han
2024-11-14 14:18 ` David Lechner
2024-11-14 20:32 ` Stephen Boyd [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-04-07 9:20 Charles Han
2025-04-08 14:14 ` David Lechner
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=d7cd72829cfd4ee9bd880d6d32e4dbc1.sboyd@kernel.org \
--to=sboyd@kernel.org \
--cc=david@lechnology.com \
--cc=hanchunchao@inspur.com \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mturquette@baylibre.com \
--cc=sboyd@kernel.orgv \
/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