]> www.infradead.org Git - nvme.git/commit
bcachefs: Fix null ptr deref in invalidate_one_bucket()
authorKent Overstreet <kent.overstreet@linux.dev>
Wed, 2 Apr 2025 16:48:23 +0000 (12:48 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Thu, 3 Apr 2025 16:11:43 +0000 (12:11 -0400)
commit39ebd74864f5c4f7d44f1fe026c71a270631186b
treea63472ea0eef21e50c58773e9f52dfe5b0c8bb8d
parent83d539b1b04705f972b53b4669fb587c54def0db
bcachefs: Fix null ptr deref in invalidate_one_bucket()

bch2_backpointer_get_key() returns bkey_s_c_null when the target isn't
found.

backpointer_get_key() flags the error, so there's nothing else to do
here - just skip it and move on.

Link: https://github.com/koverstreet/bcachefs/issues/847
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/alloc_background.c