crypto: qat: fix issue when mapping assoc to internal AD struct
authorTadeusz Struk <tadeusz.struk@intel.com>
Fri, 5 Jun 2015 22:52:13 +0000 (15:52 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 9 Jun 2015 14:22:06 +0000 (22:22 +0800)
commitecb479d07a4e2db980965193511dbf2563d50db5
tree730b9a12aed51b6a9710300ecb184a2dcfc2d41a
parente4fa1460b35e18a0eae26223ca91047d92992f3e
crypto: qat: fix issue when mapping assoc to internal AD struct

This patch fixes an issue when building an internal AD representation.
We need to check assoclen and not only blindly loop over assoc sgl.

Signed-off-by: Tadeusz Struk <tadeusz.struk@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/qat/qat_common/qat_algs.c