[PATCH] console: handle input consoles in of_console_by_stdout_path() gracefully
Sascha Hauer
s.hauer at pengutronix.de
Wed Jun 18 02:38:06 PDT 2025
On Tue, 17 Jun 2025 14:42:38 +0200, Bastian Krause wrote:
> With CONFIG_INPUT=y, inputs are registered as consoles without setting
> the dev member. This leads to a NULL pointer dereference when passed to
> dev_of_node().
>
> So add a check prior to calling dev_of_node() with a NULL pointer to
> prevent this.
>
> [...]
Applied, thanks!
[1/1] console: handle input consoles in of_console_by_stdout_path() gracefully
https://git.pengutronix.de/cgit/barebox/commit/?id=7657eaf3ed3b (link may not be stable)
Best regards,
--
Sascha Hauer <s.hauer at pengutronix.de>
More information about the barebox
mailing list