Skip to content

Commit 996c451

Browse files
Hou TaoMikulas Patocka
authored andcommitted
dm-crypt: don't initialize cc_sector again
For aead_recheck case, cc_sector has already been initialized in crypt_convert_init() when trying to re-read the read. Therefore, remove the duplicated initialization. Signed-off-by: Hou Tao <[email protected]> Signed-off-by: Mikulas Patocka <[email protected]>
1 parent 9fdbbdb commit 996c451

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/md/dm-crypt.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2211,7 +2211,6 @@ static void kcryptd_crypt_read_convert(struct dm_crypt_io *io)
22112211
crypt_inc_pending(io);
22122212

22132213
if (io->ctx.aead_recheck) {
2214-
io->ctx.cc_sector = io->sector + cc->iv_offset;
22152214
r = crypt_convert(cc, &io->ctx,
22162215
test_bit(DM_CRYPT_NO_READ_WORKQUEUE, &cc->flags), true);
22172216
} else {

0 commit comments

Comments
 (0)