diff options
-rw-r--r-- | usr.sbin/bhyve/mptbl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/bhyve/mptbl.c b/usr.sbin/bhyve/mptbl.c index ece71cd..74db2ea 100644 --- a/usr.sbin/bhyve/mptbl.c +++ b/usr.sbin/bhyve/mptbl.c @@ -395,7 +395,7 @@ mptable_build(struct vmctx *ctx, int ncpu, int ioapic) } mpch->base_table_length = curraddr - (char *)mpch; - mpch->checksum = mpt_compute_checksum(mpch, sizeof(*mpch)); + mpch->checksum = mpt_compute_checksum(mpch, mpch->base_table_length); return (0); } |