crypto: chcr - Ensure Destination sg entry size less than 2k
authorHarsh Jain <harsh@chelsio.com>
Thu, 15 Jun 2017 07:13:46 +0000 (12:43 +0530)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 20 Jun 2017 03:21:39 +0000 (11:21 +0800)
commit738bff48871902bd37c56e6c6b492bb8e37315d5
tree26a5f228d3954d1c6bc7808688a707f405f096ab
parent72cb471c13c5df00cc85dcfe5a2849db79570e4e
crypto: chcr - Ensure Destination sg entry size less than 2k

Allocate new sg list in case received destination sg list has entry
greater that 2k.

Signed-off-by: Harsh Jain <harsh@chelsio.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/chelsio/chcr_algo.c
drivers/crypto/chelsio/chcr_crypto.h