Files
Chenyuan Yang b175841731 mfd: ene-kb3930: Fix a potential NULL pointer dereference
commit 4cdf1d2a81 upstream.

The off_gpios could be NULL. Add missing check in the kb3930_probe().
This is similar to the issue fixed in commit b1ba8bcb2d
("backlight: hx8357: Fix potential NULL pointer dereference").

This was detected by our static analysis tool.

Cc: stable@vger.kernel.org
Fixes: ede6b2d1df ("mfd: ene-kb3930: Add driver for ENE KB3930 Embedded Controller")
Suggested-by: Lee Jones <lee@kernel.org>
Signed-off-by: Chenyuan Yang <chenyuan0y@gmail.com>
Link: https://lore.kernel.org/r/20250224233736.1919739-1-chenyuan0y@gmail.com
Signed-off-by: Lee Jones <lee@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-04-20 10:18:12 +02:00
..
2024-11-12 14:45:03 +00:00
2023-11-01 10:02:13 +00:00
2024-10-16 09:04:11 +01:00
2024-05-10 15:39:18 +01:00
2024-05-10 15:39:18 +01:00
2023-04-26 11:40:34 +01:00
2024-11-12 14:47:00 +00:00