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

From: Petr Mladek
Date: Thu Oct 19 2023 - 09:25:32 EST


On Thu 2023-10-12 09:42:56, 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>

Makes sense:

Reviewed-by: Petr Mladek <pmladek@xxxxxxxx>

Best Regards,
Petr