Commit 65bd0be4 authored by Ze Huang's avatar Ze Huang Committed by Linus Walleij
Browse files

pinctrl: canaan: k230: add NULL check in DT parse



Add a NULL check for the return value of of_get_property() when
retrieving the "pinmux" property in the group parser. This avoids
a potential NULL pointer dereference if the property is missing
from the device tree node.

Also fix a typo ("sintenel") in the device ID match table comment,
correcting it to "sentinel".

Fixes: 545887ea ("pinctrl: canaan: Add support for k230 SoC")
Reported-by: default avatarYao Zi <ziyao@disroot.org>
Signed-off-by: default avatarZe Huang <huangze@whut.edu.cn>
Link: https://lore.kernel.org/20250624-k230-return-check-v1-1-6b4fc5ba0c41@whut.edu.cn


Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent b58ea88d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment