crypto: caam - fix operator precedence in shared descriptor allocation
authorKim Phillips <kim.phillips@freescale.com>
Thu, 26 May 2011 03:30:34 +0000 (13:30 +1000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 29 Jun 2011 23:43:27 +0000 (07:43 +0800)
setkey allocates 16 bytes (CAAM_CMD_SZ *
DESC_AEAD_SHARED_TEXT_LEN) shy of what is needed to
store the shared descriptor, resulting in memory
corruption.  Fix this.

Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

No differences found