Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Sep 2016 09:01:07 +0800
From:      Marcelo Araujo <araujobsdport@gmail.com>
To:        Peter Grehan <grehan@freebsd.org>
Cc:        svn-src-stable-11@freebsd.org, src-committers@freebsd.org,  svn-src-stable@freebsd.org, svn-src-all@freebsd.org
Subject:   Re: svn commit: r305718 - stable/11/usr.sbin/bhyve
Message-ID:  <CAOfEmZiOcWHz-5i-=sqFojAzx_hoFi3R-b5ZQHan0WY=ANZQOw@mail.gmail.com>
In-Reply-To: <201609120024.u8C0Ou9p049994@repo.freebsd.org>
References:  <201609120024.u8C0Ou9p049994@repo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Thank you for that.

On Sep 12, 2016 8:25 AM, "Peter Grehan" <grehan@freebsd.org> wrote:

> 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?CAOfEmZiOcWHz-5i-=sqFojAzx_hoFi3R-b5ZQHan0WY=ANZQOw>