crypto: chelsio - Fix NULL pointer dereference
authorAtul Gupta <atul.gupta@chelsio.com>
Thu, 2 May 2019 10:46:55 +0000 (03:46 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 9 May 2019 05:17:22 +0000 (13:17 +0800)
commitb4f91664307d5bf4f0d93da12a6146f9cf3559fb
tree5076c818a357dc8f9895ab85e46f91abe6be3745
parente59f755ceb6d6f39f90899d2a4e39c3e05837e12
crypto: chelsio - Fix NULL pointer dereference

Do not request FW to generate cidx update if there is less
space in tx queue to post new request.
SGE DBP 1 pidx increment too large
BUG: unable to handle kernel NULL pointer dereference at
0000000000000124
SGE error for queue 101

Signed-off-by: Atul Gupta <atul.gupta@chelsio.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/chelsio/chcr_ipsec.c