Re: [PATCH v6 4/6] serial: core: Add support for DEVNAME:0.0 style naming for kernel console

Tony Lindgren
2024-02-14T09:04:12Z

* Dan Carpenter <dan.carpenter@linaro.org> [240214 09:00]:
> a2020a9ccacd63 Tony Lindgren 2024-02-13 252 int serial_base_add_preferred_console(struct uart_driver *drv,
> a2020a9ccacd63 Tony Lindgren 2024-02-13 253 struct uart_port *port)
> a2020a9ccacd63 Tony Lindgren 2024-02-13 254 {
> a2020a9ccacd63 Tony Lindgren 2024-02-13 @255 const char *port_match __free(kfree);

Thanks also noted by Andy.

> Someone should add this to checkpatch. These always need to be
> initialized to NULL.

Yes good idea. These are easy to miss especially if the code path changes
for whatever reason.

Regards,

Tony