summaryrefslogtreecommitdiff
path: root/io_uring/filetable.c
diff options
context:
space:
mode:
authorTony Lindgren <tony@atomide.com>2023-10-12 09:42:56 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-10-17 10:18:59 +0200
commit545a4f89cad5bd349522d17558b3a4208648e20e (patch)
treed4b4055f77c23696ead18417a1671a6b8d932251 /io_uring/filetable.c
parenta07b50d80ab621f4f18d429068a43cffec26691f (diff)
downloadlwn-545a4f89cad5bd349522d17558b3a4208648e20e.tar.gz
lwn-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 <tony@atomide.com> Link: https://lore.kernel.org/r/20231012064300.50221-1-tony@atomide.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'io_uring/filetable.c')
0 files changed, 0 insertions, 0 deletions