]> Git Repo - linux.git/commit
bcachefs: Fix null ptr deref in bucket_gen_get()
authorKent Overstreet <[email protected]>
Mon, 28 Oct 2024 00:40:20 +0000 (20:40 -0400)
committerKent Overstreet <[email protected]>
Thu, 7 Nov 2024 21:48:17 +0000 (16:48 -0500)
commitfd00045f383f51b66a7a46084a0e92b8de563157
treed905d0bcbe2fd8322876970757cf46fd81ba6549
parent59b723cd2adbac2a34fc8e12c74ae26ae45bf230
bcachefs: Fix null ptr deref in bucket_gen_get()

bucket_gen() checks if we're lookup up a valid bucket and returns NULL
otherwise, but bucket_gen_get() was failing to check; other callers were
correct.

Also do a bit of cleanup on callers.

Signed-off-by: Kent Overstreet <[email protected]>
fs/bcachefs/btree_node_scan.c
fs/bcachefs/buckets.h
fs/bcachefs/io_read.c
fs/bcachefs/io_write.c
This page took 0.052706 seconds and 4 git commands to generate.