mirror of
https://github.com/lkl/linux.git
synced 2025-12-19 08:03:01 +09:00
Merge tag 'v6.6-p4' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6
Pull crypto fix from Herbert Xu: "Fix a regression in dm-crypt" * tag 'v6.6-p4' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6: dm crypt: Fix reqsize in crypt_iv_eboiv_gen
This commit is contained in:
@@ -753,7 +753,8 @@ static int crypt_iv_eboiv_gen(struct crypt_config *cc, u8 *iv,
|
||||
int err;
|
||||
u8 *buf;
|
||||
|
||||
reqsize = ALIGN(crypto_skcipher_reqsize(tfm), __alignof__(__le64));
|
||||
reqsize = sizeof(*req) + crypto_skcipher_reqsize(tfm);
|
||||
reqsize = ALIGN(reqsize, __alignof__(__le64));
|
||||
|
||||
req = kmalloc(reqsize + cc->iv_size, GFP_NOIO);
|
||||
if (!req)
|
||||
|
||||
Reference in New Issue
Block a user