diff options
author | Alexander Aring <[email protected]> | 2024-03-12 13:05:07 -0400 |
---|---|---|
committer | David Teigland <[email protected]> | 2024-03-12 12:12:52 -0500 |
commit | 2ab3d705ca5d4f7ea345a21c3da41a447a549649 (patch) | |
tree | 03e5727b27821ca175a5f531d9fa7691eded083f /tools/testing/selftests/bpf/progs/test_autoload.c | |
parent | d206a76d7d2726f3b096037f2079ce0bd3ba329b (diff) |
dlm: fix user space lkb refcounting
This patch fixes to check on the right return value if it was the last
callback. The rv variable got overwritten by the return of
copy_result_to_user(). Fixing it by introducing a second variable for
the return value and don't let rv being overwritten.
Cc: [email protected]
Fixes: 61bed0baa4db ("fs: dlm: use a non-static queue for callbacks")
Reported-by: Valentin Vidić <[email protected]>
Closes: https://lore.kernel.org/gfs2/[email protected]
Signed-off-by: Alexander Aring <[email protected]>
Signed-off-by: David Teigland <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_autoload.c')
0 files changed, 0 insertions, 0 deletions