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

Tony Lindgren
2024-02-14T06:02:43Z

* Andy Shevchenko <andriy.shevchenko@linux.intel.com> [240213 15:53]:
> On Tue, Feb 13, 2024 at 10:45:11AM +0200, Tony Lindgren wrote:
> > +int serial_base_add_preferred_console(struct uart_driver *drv,
> > + struct uart_port *port)
> > +{
> > + const char *port_match __free(kfree);
>
> = NULL
>
> > + int ret;
> > +
> > + ret = serial_base_add_prefcon(drv->dev_name, port->line);
> > + if (ret)
>
> Otherwise here might be a problem.

Yes thanks for noticing it.

Regards,

Tony