mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-05 16:00:05 +01:00
Unify checks for misaligned values.
This commit is contained in:
committed by
Milan Broz
parent
622943529e
commit
d41b1a7560
@@ -71,7 +71,7 @@ int VERITY_read_sb(struct crypt_device *cd,
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
if (sb_offset % 512) {
|
||||
if (MISALIGNED_512(sb_offset)) {
|
||||
log_err(cd, _("Unsupported VERITY hash offset."));
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user