Re: [PATCH] input: mtk-pmic-keys: Fix potential NULL pointer dereference in probe()
From: Markus Elfring
Date: Wed Dec 10 2025 - 09:11:19 EST
> 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