summaryrefslogtreecommitdiff
path: root/tools/lib/python/kdoc/kdoc_output.py
diff options
context:
space:
mode:
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>2025-11-18 21:04:59 +0100
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>2025-11-19 08:32:38 +0100
commit01be9047988d15850ca15d146c5f4aeb5de2f569 (patch)
tree8ea3d803aa889d8eabfaad3efa01bb4ce3df0ca2 /tools/lib/python/kdoc/kdoc_output.py
parentbb7c963d0008f6d652ca7c7aa1aedae3d03425c7 (diff)
gpio: shared: fix a NULL-pointer dereference
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. Fixes: a060b8c511ab ("gpiolib: implement low-level, shared GPIO support") Reported-by: Mark Brown <broonie@kernel.org> Closes: https://lore.kernel.org/all/dbe20642-9662-40af-a593-c1263baea73b@sirena.org.uk/ Tested-by: Mark Brown <broonie@kernel.org> Link: https://lore.kernel.org/r/20251118200459.13969-1-brgl@bgdev.pl Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Diffstat (limited to 'tools/lib/python/kdoc/kdoc_output.py')
0 files changed, 0 insertions, 0 deletions