svn commit: r305718 - stable/11/usr.sbin/bhyve
Peter Grehan
grehan at FreeBSD.org
Mon Sep 12 00:24:58 UTC 2016
Author: grehan
Date: Mon Sep 12 00:24:56 2016
New Revision: 305718
URL: https://svnweb.freebsd.org/changeset/base/305718
Log:
MFC r305061
Invert calloc(3) argument order
Modified:
stable/11/usr.sbin/bhyve/pci_e82545.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/usr.sbin/bhyve/pci_e82545.c
==============================================================================
--- stable/11/usr.sbin/bhyve/pci_e82545.c Mon Sep 12 00:21:55 2016 (r305717)
+++ stable/11/usr.sbin/bhyve/pci_e82545.c Mon Sep 12 00:24:56 2016 (r305718)
@@ -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-all
mailing list