]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: sun8i-ss - fix a NULL vs IS_ERR() check in sun8i_ss_hashkey
authorPeng Wu <wupeng58@huawei.com>
Thu, 2 Jun 2022 07:22:34 +0000 (07:22 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 10 Jun 2022 08:43:50 +0000 (16:43 +0800)
commitc07c1f2f29e36240a4799fa889fb2db2bc5318e9
tree2232bbd406791012499650d71679d479e8b9e97d
parentbe2b2abae5624525965a41b1a94b091853317231
crypto: sun8i-ss - fix a NULL vs IS_ERR() check in sun8i_ss_hashkey

The crypto_alloc_shash() function never returns NULL. It returns error
pointers.

Fixes: 756dbd1a759d ("crypto: sun8i-ss - add hmac(sha1)")
Signed-off-by: Peng Wu <wupeng58@huawei.com>
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/allwinner/sun8i-ss/sun8i-ss-hash.c