Re: [PATCH v2] mfd: ene-kb3930: Fix potential NULL pointer dereference
From: Lee Jones
Date: Thu Feb 20 2025 - 09:59:12 EST
On Wed, 12 Feb 2025, Chenyuan Yang wrote:
> The off_gpios could be NULL. Add missing check in the kb3930_probe().
> This is similar to the issue fixed in commit b1ba8bcb2d1f
> ("backlight: hx8357: Fix potential NULL pointer dereference").
>
> Fixes: ede6b2d1dfc0 ("mfd: ene-kb3930: Add driver for ENE KB3930 Embedded Controller")
> Signed-off-by: Chenyuan Yang <chenyuan0y@xxxxxxxxx>
> Suggested-by: Lee Jones <lee@xxxxxxxxxx>
> ---
> drivers/mfd/ene-kb3930.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Please submit one more time with the following line above the tags:
Cc: stable@xxxxxxxxxxxxxxx
--
Lee Jones [李琼斯]