bcachefs: Fix a null ptr deref in btree_iter_traverse_one()
authorKent Overstreet <kent.overstreet@gmail.com>
Mon, 16 Dec 2019 20:37:47 +0000 (15:37 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:33 +0000 (17:08 -0400)
commitb5a5c4c1033af72b94c1ba7a71f61e4231f27832
tree3bd093a9080cf547e90c2ebbd1c9b84eee9f963d
parentae2f17d5ad02bc85a31d09c4396e177581abbb1f
bcachefs: Fix a null ptr deref in btree_iter_traverse_one()

When traversing nodes and we've reached the end of the btree, the
current btree node will be NULL.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/btree_iter.c