mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-05 16:00:05 +01:00
Return correct data offset for BITLK in crypt_get_data_offset
First part of the encrypted data will be always directly after the header. Fixes: #518
This commit is contained in:
committed by
Vojtech Trefny
parent
e4387d2bd1
commit
61f5dcb11e
@@ -1003,7 +1003,7 @@ int BITLK_activate(struct crypt_device *cd,
|
||||
}
|
||||
|
||||
r = device_block_adjust(cd, crypt_data_device(cd), DEV_EXCL,
|
||||
crypt_get_data_offset(cd), &dmd.size, &dmd.flags);
|
||||
0, &dmd.size, &dmd.flags);
|
||||
if (r) {
|
||||
crypt_free_volume_key(open_fvek_key);
|
||||
return r;
|
||||
|
||||
Reference in New Issue
Block a user