Skip to content

Commit 6ce26ad

Browse files
author
Kent Overstreet
committed
bcachefs: Fix missing parens in drop_locks_do()
Reported-by: syzbot+95db43b0a06f157ee865@syzkaller.appspotmail.com Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
1 parent 25989f4 commit 6ce26ad

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fs/bcachefs/btree_iter.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -838,7 +838,7 @@ __bch2_btree_iter_peek_and_restart(struct btree_trans *trans,
838838
#define drop_locks_do(_trans, _do) \
839839
({ \
840840
bch2_trans_unlock(_trans); \
841-
_do ?: bch2_trans_relock(_trans); \
841+
(_do) ?: bch2_trans_relock(_trans); \
842842
})
843843

844844
#define allocate_dropping_locks_errcode(_trans, _do) \

0 commit comments

Comments
 (0)