]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: hisilicon - fix a NULL vs IS_ERR() bug in sec_create_qp_ctx()
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 26 Nov 2019 12:21:20 +0000 (15:21 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 27 Nov 2019 05:08:50 +0000 (13:08 +0800)
commitb6cc9461c6bf7a745b875177bd818cdbcb5f26b6
treec7ba939beb94771c7e859e6e248e87d52eeab706
parent9a1e9ad701c60b16c9e5a5847b3ec3a704e0a4b2
crypto: hisilicon - fix a NULL vs IS_ERR() bug in sec_create_qp_ctx()

The hisi_acc_create_sgl_pool() function returns error pointers, it never
returns NULL pointers.

Fixes: 29185717a874 ("crypto: hisilicon - add HiSilicon SEC V2 driver")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/hisilicon/sec2/sec_crypto.c