]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
dlm: fix swapped args sb_flags vs sb_status
authorAlexander Aring <aahringo@redhat.com>
Fri, 4 Oct 2024 15:13:37 +0000 (11:13 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Dec 2024 12:53:11 +0000 (13:53 +0100)
[ Upstream commit 6d59f2fbfb18965f76ebcff40ab38da717cde798 ]

The arguments got swapped by commit 986ae3c2a8df ("dlm: fix race between
final callback and remove") fixing this now.

Fixes: 986ae3c2a8df ("dlm: fix race between final callback and remove")
Signed-off-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/dlm/ast.c

index 742b30b61c196fb21c83593b2d9bd8ab6f1f91fc..0fe8d80ce5e8d3e6924a0d949c22f1b68f547822 100644 (file)
@@ -30,7 +30,7 @@ static void dlm_run_callback(uint32_t ls_id, uint32_t lkb_id, int8_t mode,
                trace_dlm_bast(ls_id, lkb_id, mode, res_name, res_length);
                bastfn(astparam, mode);
        } else if (flags & DLM_CB_CAST) {
-               trace_dlm_ast(ls_id, lkb_id, sb_status, sb_flags, res_name,
+               trace_dlm_ast(ls_id, lkb_id, sb_flags, sb_status, res_name,
                              res_length);
                lksb->sb_status = sb_status;
                lksb->sb_flags = sb_flags;