bcachefs: Fix missing parens in drop_locks_do()
authorKent Overstreet <kent.overstreet@linux.dev>
Sun, 19 May 2024 21:55:02 +0000 (17:55 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Mon, 20 May 2024 09:37:26 +0000 (05:37 -0400)
Reported-by: syzbot+95db43b0a06f157ee865@syzkaller.appspotmail.com
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/btree_iter.h

index eab2a25bdc7a26df3abf288436f59f4c4f20ef1c..798eb1c47966d29d9aeb0c3a1f888a914745978e 100644 (file)
@@ -838,7 +838,7 @@ __bch2_btree_iter_peek_and_restart(struct btree_trans *trans,
 #define drop_locks_do(_trans, _do)                                     \
 ({                                                                     \
        bch2_trans_unlock(_trans);                                      \
-       _do ?: bch2_trans_relock(_trans);                               \
+       (_do) ?: bch2_trans_relock(_trans);                             \
 })
 
 #define allocate_dropping_locks_errcode(_trans, _do)                   \