[PATCH] input: mtk-pmic-keys: Fix potential NULL pointer dereference in probe()

Markus Elfring Markus.Elfring at web.de
Wed Dec 10 06:11:03 PST 2025


> of_match_device() may return NULL when the device node
> does not match any entry in the driver's match table.
> The current code dereferences of_id->data unconditionally,
> which can lead to a NULL pointer dereference.
…

Under which circumstances would you get into the mood to take more desirable
word wrap preferences better into account?
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?h=v6.18#n658

Regards,
Markus



More information about the linux-arm-kernel mailing list