From aa95986eb8be411cdd5e2960e386231b4d376581 Mon Sep 17 00:00:00 2001 From: David Gwynne Date: Wed, 3 Dec 2008 04:07:21 +0000 Subject: use the right variable when looping over rxqs. --- sys/dev/pci/if_vic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev') 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 @@ -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; } -- cgit v1.2.3