diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2006-09-03 00:58:41 +0200 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-12-07 03:38:48 +0100 |
commit | 45789328e5aa2de96d4467e4445418364e5378d7 (patch) | |
tree | 12ce03490ca894797377502a94f1927875177b86 /drivers/md/dm-crypt.c | |
parent | [BLOCK] dm-crypt: benbi IV, big endian narrow block count for LRW-32-AES (diff) | |
download | linux-45789328e5aa2de96d4467e4445418364e5378d7.tar.xz linux-45789328e5aa2de96d4467e4445418364e5378d7.zip |
[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>
Diffstat (limited to 'drivers/md/dm-crypt.c')
-rw-r--r-- | drivers/md/dm-crypt.c | 2 |
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, struct scatterlist *in, unsigned int length, int write, sector_t sector) { - u8 iv[cc->iv_size]; + u8 iv[cc->iv_size] __attribute__ ((aligned(__alignof__(u64)))); struct blkcipher_desc desc = { .tfm = cc->tfm, .info = iv, |