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

From: Tony Lindgren
Date: Wed Feb 14 2024 - 04:04:23 EST


* Dan Carpenter <dan.carpenter@xxxxxxxxxx> [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