Re: [PATCH] pinctrl: qcom: tlmm-test: Fix potential null dereference in tlmm kunit test
From: Linus Walleij
Date: Tue Apr 15 2025 - 03:23:56 EST
On Tue, Mar 25, 2025 at 10:49 AM Charles Han <hanchunchao@xxxxxxxxxx> wrote:
> kunit_kzalloc() may return a NULL pointer, dereferencing it without
> NULL check may lead to NULL dereference.
> Add a NULL check for grp.
>
> Fixes: c7984dc0a2b9 ("pinctrl: qcom: Add test case for TLMM interrupt handling")
> Signed-off-by: Charles Han <hanchunchao@xxxxxxxxxx>
Patch applied.
Yours,
Linus Walleij