]> www.infradead.org Git - users/hch/block.git/commit
bcachefs: Fix incorrect IS_ERR_OR_NULL usage
authorKent Overstreet <kent.overstreet@linux.dev>
Tue, 24 Sep 2024 23:31:22 +0000 (19:31 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sat, 28 Sep 2024 01:46:34 +0000 (21:46 -0400)
commitb29c30ab48e0395a22ecf0b94443d16a8f493fb6
tree543419a5b1692d6c21dfd154f9fa994cf7bbc00f
parentdc5bfdf8eaed76cf527c9477952c535f75e0e499
bcachefs: Fix incorrect IS_ERR_OR_NULL usage

Returning a positive integer instead of an error code causes error paths
to become very confused.

Closes: syzbot+c0360e8367d6d8d04a66@syzkaller.appspotmail.com
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/btree_node_scan.c