Re: [PATCH] gpio: shared: fix a NULL-pointer dereference
From: Mark Brown
Date: Tue Nov 18 2025 - 15:08:36 EST
On Tue, Nov 18, 2025 at 09:04:59PM +0100, Bartosz Golaszewski wrote:
> From: Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxx>
>
> The fact that CONFIG_OF is enabled does not mean that the device tree is
> populated and that of_root points to a valid device node. Check if it's
> NULL before trying to traverse the tree.
Tested-by: Mark Brown <broonie@xxxxxxxxxx>
Attachment:
signature.asc
Description: PGP signature