bcachefs: Fix bch2_alloc_ciphers()
authorKent Overstreet <kent.overstreet@linux.dev>
Sun, 19 May 2024 23:58:44 +0000 (19:58 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Mon, 20 May 2024 09:37:26 +0000 (05:37 -0400)
commitc06a8b75679d73473c0c382bcc676ee4b7657bee
tree6ba4e7e89f5e668a1b894426a1fa8226488776f7
parent6d48e61364aedd774d688f28b5a6c9b5f7f0018c
bcachefs: Fix bch2_alloc_ciphers()

Don't put error pointers in bch_fs, that's gross.

This fixes (?) the check in bch2_checksum_type_valid() - depending on
our error paths, or depending on what our error paths are doing it at
least makes the code saner.

Reported-by: syzbot+2e3cb81b5d1fe18a374b@syzkaller.appspotmail.com
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/checksum.c