aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/progs/test_autoload.c
diff options
context:
space:
mode:
authorZhihao Cheng <[email protected]>2022-11-11 20:10:27 +0800
committerMike Snitzer <[email protected]>2022-11-18 10:23:55 -0500
commit0dfc1f4ceae86a0d09d880ab87625c86c61ed33c (patch)
treec0fc918575a12cec15bf5456205f9268824eb399 /tools/testing/selftests/bpf/progs/test_autoload.c
parent4fe1ec995483737f3d2a14c3fe1d8fe634972979 (diff)
dm bufio: Fix missing decrement of no_sleep_enabled if dm_bufio_client_create failed
The 'no_sleep_enabled' should be decreased in error handling path in dm_bufio_client_create() when the DM_BUFIO_CLIENT_NO_SLEEP flag is set, otherwise static_branch_unlikely() will always return true even if no dm_bufio_client instances have DM_BUFIO_CLIENT_NO_SLEEP flag set. Cc: [email protected] Fixes: 3c1c875d0586 ("dm bufio: conditionally enable branching for DM_BUFIO_CLIENT_NO_SLEEP") Signed-off-by: Zhihao Cheng <[email protected]> Signed-off-by: Mike Snitzer <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_autoload.c')
0 files changed, 0 insertions, 0 deletions