summaryrefslogtreecommitdiff
path: root/sys/dev/pci
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2016-01-07 12:18:39 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2016-01-07 12:18:39 +0000
commit4398cc39e8c2e9682251305071b9d43b326a0ecf (patch)
tree5b6d0e4ebb5d9112f43223918e976f7a5935315a /sys/dev/pci
parent5b9881a18ba54f13ce9839a44a3edc417cd00cc6 (diff)
look at pkts inside the loop over the pkts in em_free_receive_structures.
Diffstat (limited to 'sys/dev/pci')
-rw-r--r--sys/dev/pci/if_em.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_em.c b/sys/dev/pci/if_em.c
index 6a0cea43b64..8f1e6771390 100644
--- a/sys/dev/pci/if_em.c
+++ b/sys/dev/pci/if_em.c
@@ -31,7 +31,7 @@ POSSIBILITY OF SUCH DAMAGE.
***************************************************************************/
-/* $OpenBSD: if_em.c,v 1.325 2016/01/07 11:19:54 dlg Exp $ */
+/* $OpenBSD: if_em.c,v 1.326 2016/01/07 12:18:38 dlg Exp $ */
/* $FreeBSD: if_em.c,v 1.46 2004/09/29 18:28:28 mlaier Exp $ */
#include <dev/pci/if_em.h>
@@ -2662,8 +2662,8 @@ em_free_receive_structures(struct em_softc *sc)
BUS_DMASYNC_POSTREAD | BUS_DMASYNC_POSTWRITE);
if (sc->sc_rx_pkts_ring != NULL) {
- pkt = &sc->sc_rx_pkts_ring[i];
for (i = 0; i < sc->sc_rx_slots; i++) {
+ pkt = &sc->sc_rx_pkts_ring[i];
if (pkt->pkt_m != NULL) {
bus_dmamap_sync(sc->sc_dmat, pkt->pkt_map,
0, pkt->pkt_map->dm_mapsize,