bcachefs: Fix rand_delete() test
authorKent Overstreet <kent.overstreet@gmail.com>
Mon, 7 Dec 2020 16:44:12 +0000 (11:44 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:49 +0000 (17:08 -0400)
commitd5b98fe2d764170e7a30eda8b94780aa6a0af129
tree8445aede57c92d6f12baf1cb5572edd2d4c205a3
parenta2bfc8412ad8da289b933810232cf95f7739340a
bcachefs: Fix rand_delete() test

When we didn't find a key to delete we were getting a null ptr deref.

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