diff options
author | Tony Lindgren <[email protected]> | 2023-10-12 09:42:56 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2023-10-17 10:18:59 +0200 |
commit | 545a4f89cad5bd349522d17558b3a4208648e20e (patch) | |
tree | d4b4055f77c23696ead18417a1671a6b8d932251 /fs/stack.c | |
parent | a07b50d80ab621f4f18d429068a43cffec26691f (diff) |
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 'fs/stack.c')
0 files changed, 0 insertions, 0 deletions