diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2006-09-03 08:58:41 +1000 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-12-06 18:38:48 -0800 |
commit | 45789328e5aa2de96d4467e4445418364e5378d7 (patch) | |
tree | 12ce03490ca894797377502a94f1927875177b86 /drivers/md/dm-crypt.c | |
parent | 48527fa7cf7fefb84e9fe03cddd08ddafc9f15f3 (diff) | |
download | blackbird-op-linux-45789328e5aa2de96d4467e4445418364e5378d7.tar.gz blackbird-op-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, |