[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <f59af2ac-a7a2-4490-8858-30c7f98e4149@kernel.org>
Date: Tue, 1 Apr 2025 13:00:11 +0200
From: Krzysztof Kozlowski <krzk@...nel.org>
To: Henry Martin <bsdhenrymartin@...il.com>, georgi.djakov@...aro.org
Cc: s.nawrocki@...sung.com, a.swigon@...sung.com, alim.akhtar@...sung.com,
linux-pm@...r.kernel.org, linux-samsung-soc@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2] backlight: pm8941: Add NULL check in
exynos_generic_icc_probe()
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@...il.com>
> ---
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>
Best regards,
Krzysztof
Powered by blists - more mailing lists