diff options
author | grehan <grehan@FreeBSD.org> | 2013-04-05 22:14:07 +0000 |
---|---|---|
committer | grehan <grehan@FreeBSD.org> | 2013-04-05 22:14:07 +0000 |
commit | 9b0ba3c866b45e5419023cbaf618e8218f41f68b (patch) | |
tree | 8b43698e9bf5ed3689a4348cb1e78f780d902243 | |
parent | e50561d0646af7232ef4e2a69fb9937361c0d505 (diff) | |
download | FreeBSD-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
-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); } |