Skip to content
Commit 33b53749 authored by Yang Yingliang's avatar Yang Yingliang Committed by Herbert Xu
Browse files

crypto: starfive - fix return value check in starfive_aes_prepare_req()



kzalloc() returns NULL pointer not PTR_ERR() when it fails,
so replace the IS_ERR() check with NULL pointer check.

Fixes: e22471c2 ("crypto: starfive - Add AES skcipher and aead support")
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent b9a281f1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment