diff options
Diffstat (limited to 'crypto/internal.h')
-rw-r--r-- | crypto/internal.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/internal.h b/crypto/internal.h index 68612874b5fd..37515beafc8c 100644 --- a/crypto/internal.h +++ b/crypto/internal.h | |||
@@ -75,7 +75,7 @@ static inline unsigned int crypto_cipher_ctxsize(struct crypto_alg *alg, | |||
75 | 75 | ||
76 | switch (flags & CRYPTO_TFM_MODE_MASK) { | 76 | switch (flags & CRYPTO_TFM_MODE_MASK) { |
77 | case CRYPTO_TFM_MODE_CBC: | 77 | case CRYPTO_TFM_MODE_CBC: |
78 | len = ALIGN(len, alg->cra_alignmask + 1); | 78 | len = ALIGN(len, (unsigned long)alg->cra_alignmask + 1); |
79 | len += alg->cra_blocksize; | 79 | len += alg->cra_blocksize; |
80 | break; | 80 | break; |
81 | } | 81 | } |