]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
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)
commita18b989a5c12ca82ed37f94279273ddbc073758a
tree496c4c043d7712a52691cadf5df8025ab32a63c9
parent258e43fdb00c73d424b114ae3850accd55b27cbb
crypto: caam - fix operator precedence in shared descriptor allocation

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>
drivers/crypto/caam/caamalg.c