Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit db09efb9 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "dm-default-key: fix wrong encryption/decryption when f2fs moves blocks"

parents 65de2b8f afea5840
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -133,7 +133,7 @@ static int default_key_map(struct dm_target *ti, struct bio *bio)
			dm_target_offset(ti, bio->bi_iter.bi_sector);
			dm_target_offset(ti, bio->bi_iter.bi_sector);
	}
	}


	if (!bio->bi_crypt_key)
	if (!bio->bi_crypt_key && !bio->bi_crypt_skip)
		bio->bi_crypt_key = &dkc->key;
		bio->bi_crypt_key = &dkc->key;


	return DM_MAPIO_REMAPPED;
	return DM_MAPIO_REMAPPED;