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)
commit8a6b8f4d7a891ac66db4f97900a86b55c84a5802
treec7ba939beb94771c7e859e6e248e87d52eeab706
parentdbc2e87bd8b6d3cc79730b3a49c5163b4c386b49
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: 416d82204df4 ("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