svn commit: r249173 - head/usr.sbin/bhyve
Peter Grehan
grehan at FreeBSD.org
Fri Apr 5 22:14:08 UTC 2013
Author: grehan
Date: Fri Apr 5 22:14:07 2013
New Revision: 249173
URL: http://svnweb.freebsd.org/changeset/base/249173
Log:
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
Modified:
head/usr.sbin/bhyve/mptbl.c
Modified: head/usr.sbin/bhyve/mptbl.c
==============================================================================
--- head/usr.sbin/bhyve/mptbl.c Fri Apr 5 21:18:01 2013 (r249172)
+++ head/usr.sbin/bhyve/mptbl.c Fri Apr 5 22:14:07 2013 (r249173)
@@ -395,7 +395,7 @@ mptable_build(struct vmctx *ctx, int ncp
}
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);
}
More information about the svn-src-all
mailing list