[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20231207072341.GU5169@atomide.com>
Date: Thu, 7 Dec 2023 09:23:41 +0200
From: Tony Lindgren <tony@...mide.com>
To: Andy Shevchenko <andriy.shevchenko@...el.com>
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Jiri Slaby <jirislaby@...nel.org>,
Petr Mladek <pmladek@...e.com>,
Steven Rostedt <rostedt@...dmis.org>,
John Ogness <john.ogness@...utronix.de>,
Sergey Senozhatsky <senozhatsky@...omium.org>,
"David S . Miller" <davem@...emloft.net>,
Dhruva Gole <d-gole@...com>,
Ilpo Järvinen <ilpo.jarvinen@...ux.intel.com>,
Johan Hovold <johan@...nel.org>,
Sebastian Andrzej Siewior <bigeasy@...utronix.de>,
Vignesh Raghavendra <vigneshr@...com>,
linux-kernel@...r.kernel.org, linux-serial@...r.kernel.org
Subject: Re: [PATCH v4 4/4] serial: 8250: Add preferred console in
serial8250_isa_init_ports()
* Andy Shevchenko <andriy.shevchenko@...el.com> [231205 16:08]:
> On Tue, Dec 05, 2023 at 09:32:36AM +0200, Tony Lindgren wrote:
> > + name = kasprintf(GFP_KERNEL, "%s%i", serial8250_reg.dev_name, idx);
>
> No error check?
Oops
> > + ret = add_preferred_console_match(name, serial8250_reg.dev_name, idx);
> > + if (!ret || ret == -ENOENT)
> > + return;
>
> ret = serial_base_add_one_prefcon(...);
>
> ?
Yup that should work even before struct device. Will fix the other
places too you noticed.
Thanks,
Tony
Powered by blists - more mailing lists