Re: [PATCH 1/2] printk: Check valid console index for preferred console

From: Greg Kroah-Hartman
Date: Mon Oct 16 2023 - 14:45:34 EST


On Mon, Oct 16, 2023 at 08:45:00PM +0200, Greg Kroah-Hartman wrote:
> On Thu, Oct 12, 2023 at 09:42:56AM +0300, Tony Lindgren wrote:
> > Let's check for valid console index values for preferred console to avoid
> > bogus console index numbers from kernel command line.
> >
> > Let's also return an error for negative index numbers for the preferred
> > console. Unlike for device drivers, a negative index is not valid for the
> > preferred console.
> >
> > Let's also constify idx while at it.
> >
> > Signed-off-by: Tony Lindgren <tony@xxxxxxxxxxx>
>
> Reviewed-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>

Oops, you want these to go through my tree, I'll take them now...