Skip to content

Commit 796220e

Browse files
committed
dm-crypt: don't initialize cc_sector again
JIRA: https://issues.redhat.com/browse/RHEL-84777 Upstream Status: kernel/git/torvalds/linux.git commit 996c451 Author: Hou Tao <houtao1@huawei.com> Date: Mon Jan 20 16:29:50 2025 +0800 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 <houtao1@huawei.com> Signed-off-by: Mikulas Patocka <mpatocka@redhat.com> Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
1 parent 0ad4a3a commit 796220e

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)