diff options
Diffstat (limited to 'payloads/libpayload/i386')
-rw-r--r-- | payloads/libpayload/i386/coreboot.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/payloads/libpayload/i386/coreboot.c b/payloads/libpayload/i386/coreboot.c index 8e4a19a5ee..e9bc40fc41 100644 --- a/payloads/libpayload/i386/coreboot.c +++ b/payloads/libpayload/i386/coreboot.c @@ -95,10 +95,10 @@ static int cb_parse_header(void *addr, int len, struct sysinfo_t *info) return 0; /* Make sure the checksums match. */ - if (ipchksum((uint16_t *) header, sizeof(*header)) != 0) + if (ipchksum((u16 *) header, sizeof(*header)) != 0) return -1; - if (ipchksum((uint16_t *) (ptr + sizeof(*header)), + if (ipchksum((u16 *) (ptr + sizeof(*header)), header->table_bytes) != header->table_checksum) return -1; |