diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2008-12-03 04:07:21 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2008-12-03 04:07:21 +0000 |
commit | aa95986eb8be411cdd5e2960e386231b4d376581 (patch) | |
tree | d61c6bdf6e887b1aa7041dd41bde64c17f4e5cad /sys/dev | |
parent | 558c5814c21c8024a2fa0f22c34593b333cbd170 (diff) |
use the right variable when looping over rxqs.
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/pci/if_vic.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_vic.c b/sys/dev/pci/if_vic.c index ed0c0089435..ca311af9582 100644 --- a/sys/dev/pci/if_vic.c +++ b/sys/dev/pci/if_vic.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_vic.c,v 1.64 2008/11/28 02:44:18 brad Exp $ */ +/* $OpenBSD: if_vic.c,v 1.65 2008/12/03 04:07:20 dlg Exp $ */ /* * Copyright (c) 2006 Reyk Floeter <reyk@openbsd.org> @@ -571,7 +571,7 @@ vic_alloc_data(struct vic_softc *sc) for (q = 0; q < VIC_NRXRINGS; q++) { sc->sc_rxq[q].bufs = malloc(sizeof(struct vic_rxbuf) * sc->sc_nrxbuf, M_DEVBUF, M_NOWAIT | M_ZERO); - if (sc->sc_rxq[i].bufs == NULL) { + if (sc->sc_rxq[q].bufs == NULL) { printf(": unable to allocate rxbuf for ring %d\n", q); goto freerx; } |