Revert "kernel: deny unexpected offset value for signing check"

This reverts commit 97ee114aa5.
This commit is contained in:
weishu
2024-03-30 16:05:31 +08:00
parent 97ee114aa5
commit d533c27e4f

View File

@@ -264,12 +264,7 @@ static __always_inline bool check_v2_signature(char *path,
pr_info("Unknown singature block id: 0x%08x\n", id);
goto clean;
}
u64 next = size8 - offset;
if (next == 0) {
pr_warn("Unexpeced offset value!\n");
goto clean;
}
pos += next;
pos += (size8 - offset);
}
if (v2_signing_blocks != 1) {