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);
 }
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to