diff options
| author | Tony Lindgren <[email protected]> | 2023-10-12 06:42:56 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2023-10-17 08:18:59 +0000 |
| commit | 545a4f89cad5bd349522d17558b3a4208648e20e (patch) | |
| tree | d4b4055f77c23696ead18417a1671a6b8d932251 /drivers/tty/serial/esp32_uart.c | |
| parent | hyperv: avoid dependency on screen_info (diff) | |
| download | kernel-545a4f89cad5bd349522d17558b3a4208648e20e.tar.gz kernel-545a4f89cad5bd349522d17558b3a4208648e20e.zip | |
printk: Check valid console index for preferred console
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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/tty/serial/esp32_uart.c')
0 files changed, 0 insertions, 0 deletions
