bcachefs: Fix error checks in bch2_chacha_encrypt_key()
authorKent Overstreet <kent.overstreet@linux.dev>
Wed, 20 Sep 2023 02:20:25 +0000 (22:20 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:10:14 +0000 (17:10 -0400)
commit75e0c4789b623db0abae497160202bc5f5d2522e
tree4a7b79f468f06f0681889f277a84c20b84a341f8
parenta55fc65eb2c71da5d422937db767a78c6438f9b6
bcachefs: Fix error checks in bch2_chacha_encrypt_key()

crypto_alloc_sync_skcipher() returns an ERR_PTR, not NULL.

Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/checksum.c