svn commit: r305061 - head/usr.sbin/bhyve
Marcelo Araujo
araujo at FreeBSD.org
Tue Aug 30 12:40:14 UTC 2016
Author: araujo
Date: Tue Aug 30 12:40:12 2016
New Revision: 305061
URL: https://svnweb.freebsd.org/changeset/base/305061
Log:
Invert calloc(3) argument order.
Reviewed by: grehan, mav
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D7613
Modified:
head/usr.sbin/bhyve/pci_e82545.c
Modified: head/usr.sbin/bhyve/pci_e82545.c
==============================================================================
--- head/usr.sbin/bhyve/pci_e82545.c Tue Aug 30 12:36:14 2016 (r305060)
+++ head/usr.sbin/bhyve/pci_e82545.c Tue Aug 30 12:40:12 2016 (r305061)
@@ -2273,7 +2273,7 @@ e82545_init(struct vmctx *ctx, struct pc
int mac_provided;
/* Setup our softc */
- sc = calloc(sizeof(*sc), 1);
+ sc = calloc(1, sizeof(*sc));
pi->pi_arg = sc;
sc->esc_pi = pi;
More information about the svn-src-head
mailing list