summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bhyve
diff options
context:
space:
mode:
authorgrehan <grehan@FreeBSD.org>2013-04-05 22:14:07 +0000
committergrehan <grehan@FreeBSD.org>2013-04-05 22:14:07 +0000
commit9b0ba3c866b45e5419023cbaf618e8218f41f68b (patch)
tree8b43698e9bf5ed3689a4348cb1e78f780d902243 /usr.sbin/bhyve
parente50561d0646af7232ef4e2a69fb9937361c0d505 (diff)
downloadFreeBSD-src-9b0ba3c866b45e5419023cbaf618e8218f41f68b.zip
FreeBSD-src-9b0ba3c866b45e5419023cbaf618e8218f41f68b.tar.gz
config checksum is over the entire fixed portion, not just the
config header. FreeBSD doesn't check this but other o/s's do. Obtained from: NetApp
Diffstat (limited to 'usr.sbin/bhyve')
-rw-r--r--usr.sbin/bhyve/mptbl.c2
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);
}
OpenPOWER on IntegriCloud