aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2006-09-02 18:58:41 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2006-12-06 21:38:48 -0500
commit45789328e5aa2de96d4467e4445418364e5378d7 (patch)
tree12ce03490ca894797377502a94f1927875177b86
parent48527fa7cf7fefb84e9fe03cddd08ddafc9f15f3 (diff)
[BLOCK] dm-crypt: Align IV to u64 for essiv
This patch makes the IV u64-aligned since essiv does a u64 store to it. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
-rw-r--r--drivers/md/dm-crypt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm-crypt.c b/drivers/md/dm-crypt.c
index 6dbaeee48ced..facf859b9b87 100644
--- a/drivers/md/dm-crypt.c
+++ b/drivers/md/dm-crypt.c
@@ -272,7 +272,7 @@ crypt_convert_scatterlist(struct crypt_config *cc, struct scatterlist *out,
272 struct scatterlist *in, unsigned int length, 272 struct scatterlist *in, unsigned int length,
273 int write, sector_t sector) 273 int write, sector_t sector)
274{ 274{
275 u8 iv[cc->iv_size]; 275 u8 iv[cc->iv_size] __attribute__ ((aligned(__alignof__(u64))));
276 struct blkcipher_desc desc = { 276 struct blkcipher_desc desc = {
277 .tfm = cc->tfm, 277 .tfm = cc->tfm,
278 .info = iv, 278 .info = iv,