Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Sep 2016 00:24:56 +0000 (UTC)
From:      Peter Grehan <grehan@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r305718 - stable/11/usr.sbin/bhyve
Message-ID:  <201609120024.u8C0Ou9p049994@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201609120024.u8C0Ou9p049994>