crypto: chelsio - check for sg null
authorHarsh Jain <harsh@chelsio.com>
Thu, 11 Jan 2018 11:15:49 +0000 (16:45 +0530)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 18 Jan 2018 11:52:28 +0000 (22:52 +1100)
commit8daa32b9357de54eb68d78bbe668d52a83d24e71
tree9081cfa3de71c62142445218655224a0ef09a8af
parentdb6deea4899e2336de42da43c545eeac2eead4af
crypto: chelsio - check for sg null

Add warning message if sg is NULL after skipping bytes.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Harsh Jain <harsh@chelsio.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/chelsio/chcr_algo.c