bcachefs: Fix a null ptr deref
authorKent Overstreet <kent.overstreet@gmail.com>
Sun, 10 Apr 2022 18:36:10 +0000 (14:36 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:31 +0000 (17:09 -0400)
commit6e811bbbc2ea3b20854c45fa29811640881bb534
tree367accfa358145bde9183fea2a940ba9cbbe63be
parentcf0dd697ebc9090d0aeafa933e0e688e291a24fc
bcachefs: Fix a null ptr deref

We start doing allocations before the GC thread is created, which means
we need to check for that to avoid a null ptr deref.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
fs/bcachefs/btree_gc.h