From: Kent Overstreet Date: Sun, 19 May 2024 21:55:02 +0000 (-0400) Subject: bcachefs: Fix missing parens in drop_locks_do() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=6ce26ad376bdc65c2bc6d4ef7b8a939bf1bd19dc;p=linux.git bcachefs: Fix missing parens in drop_locks_do() Reported-by: syzbot+95db43b0a06f157ee865@syzkaller.appspotmail.com Signed-off-by: Kent Overstreet --- diff --git a/fs/bcachefs/btree_iter.h b/fs/bcachefs/btree_iter.h index eab2a25bdc7a2..798eb1c47966d 100644 --- a/fs/bcachefs/btree_iter.h +++ b/fs/bcachefs/btree_iter.h @@ -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) \