On Mon, Jul 31, 2023 at 10:02:49PM +0800, Yang Yingliang wrote: > kzalloc() returns NULL pointer not PTR_ERR() when it fails, > so replace the IS_ERR() check with NULL pointer check. > > Fixes: e22471c2331c ("crypto: starfive - Add AES skcipher and aead support") > Signed-off-by: Yang Yingliang <yangyingliang@xxxxxxxxxx> > --- > drivers/crypto/starfive/jh7110-aes.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) Patch applied. Thanks. -- Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt