From: Krzysztof Kozlowski <krzk@kernel.org>
To: Henry Martin <bsdhenrymartin@gmail.com>, georgi.djakov@linaro.org
Cc: s.nawrocki@samsung.com, a.swigon@samsung.com,
alim.akhtar@samsung.com, linux-pm@vger.kernel.org,
linux-samsung-soc@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2] backlight: pm8941: Add NULL check in exynos_generic_icc_probe()
Date: Tue, 1 Apr 2025 13:00:11 +0200 [thread overview]
Message-ID: <f59af2ac-a7a2-4490-8858-30c7f98e4149@kernel.org> (raw)
In-Reply-To: <20250401104518.25391-1-bsdhenrymartin@gmail.com>
On 01/04/2025 12:45, Henry Martin wrote:
> devm_kasprintf() returns NULL when memory allocation fails. Currently,
> exynos_generic_icc_probe() does not check for this case, which results
> in a NULL pointer dereference.
>
> Add NULL check after devm_kasprintf() to prevent this issue.
>
> Fixes: 2f95b9d5cf0b ("interconnect: Add generic interconnect driver for Exynos SoCs")
> Signed-off-by: Henry Martin <bsdhenrymartin@gmail.com>
> ---
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Best regards,
Krzysztof
next prev parent reply other threads:[~2025-04-01 11:08 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-01 10:45 [PATCH v2] backlight: pm8941: Add NULL check in exynos_generic_icc_probe() Henry Martin
2025-04-01 11:00 ` Krzysztof Kozlowski [this message]
2025-04-24 3:03 ` henry martin
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=f59af2ac-a7a2-4490-8858-30c7f98e4149@kernel.org \
--to=krzk@kernel.org \
--cc=a.swigon@samsung.com \
--cc=alim.akhtar@samsung.com \
--cc=bsdhenrymartin@gmail.com \
--cc=georgi.djakov@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=s.nawrocki@samsung.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