]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
btrfs: tree-checker: fix bounds check in check_inode_extref()
authorDan Carpenter <dan.carpenter@linaro.org>
Wed, 8 Oct 2025 15:08:58 +0000 (18:08 +0300)
committerDavid Sterba <dsterba@suse.com>
Mon, 13 Oct 2025 20:35:51 +0000 (22:35 +0200)
commite92c2941204de7b62e9c2deecfeb9eaefe54a22a
tree67c4b7525dd1cc5fe7c18e29ce7774c073245d80
parentfec9b9d3ced39f16be8d7afdf81f4dd2653da319
btrfs: tree-checker: fix bounds check in check_inode_extref()

The parentheses for the unlikely() annotation were put in the wrong
place so it means that the condition is basically never true and the
bounds checking is skipped.

Fixes: aab9458b9f00 ("btrfs: tree-checker: add inode extref checks")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/tree-checker.c