summaryrefslogtreecommitdiff
path: root/net/lapb
diff options
context:
space:
mode:
authorTerry Tritton <terry.tritton@linaro.org>2024-01-24 14:13:57 +0000
committerKees Cook <keescook@chromium.org>2024-02-01 10:16:03 -0800
commit8e3c9f9f3a0742cd12b682a1766674253b33fcf0 (patch)
tree6711873b8115f0a3b481a3838d03e41ebfa93f17 /net/lapb
parent471dbc547612adeaa769e48498ef591c6c95a57a (diff)
selftests/seccomp: user_notification_addfd check nextfd is available
Currently the user_notification_addfd test checks what the next expected file descriptor will be by incrementing a variable nextfd. This does not account for file descriptors that may already be open before the test is started and will cause the test to fail if any exist. Replace nextfd++ with a function get_next_fd which will check and return the next available file descriptor. Signed-off-by: Terry Tritton <terry.tritton@linaro.org> Link: https://lore.kernel.org/r/20240124141357.1243457-4-terry.tritton@linaro.org Signed-off-by: Kees Cook <keescook@chromium.org>
Diffstat (limited to 'net/lapb')
0 files changed, 0 insertions, 0 deletions