Invert calloc(3) argument order.
Reviewed by: grehan, mav MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D7613
This commit is contained in:
parent
cc43fd1ab5
commit
9287c0323d
@ -2273,7 +2273,7 @@ e82545_init(struct vmctx *ctx, struct pci_devinst *pi, char *opts)
|
||||
int mac_provided;
|
||||
|
||||
/* Setup our softc */
|
||||
sc = calloc(sizeof(*sc), 1);
|
||||
sc = calloc(1, sizeof(*sc));
|
||||
|
||||
pi->pi_arg = sc;
|
||||
sc->esc_pi = pi;
|
||||
|
Loading…
x
Reference in New Issue
Block a user