summaryrefslogtreecommitdiff
path: root/sys/dev/ic
diff options
context:
space:
mode:
authorStefan Sperling <stsp@cvs.openbsd.org>2014-07-20 11:57:06 +0000
committerStefan Sperling <stsp@cvs.openbsd.org>2014-07-20 11:57:06 +0000
commit277d37983e1ce6bb446d0366f62677d93561c306 (patch)
tree4fd547bf6b8881b7ea463815aaf64b020e0d4cd4 /sys/dev/ic
parentd85111f7c1a6b21cc19132628f88ca370f878b8f (diff)
Make bwi_dma_mbuf_create() use the correct loop counter in error case.
Bug inherited from DragonFly BSD. ok mpi@ as part of a larger diff.
Diffstat (limited to 'sys/dev/ic')
-rw-r--r--sys/dev/ic/bwi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/bwi.c b/sys/dev/ic/bwi.c
index 0313a759b0c..b83b1e830fc 100644
--- a/sys/dev/ic/bwi.c
+++ b/sys/dev/ic/bwi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bwi.c,v 1.103 2014/07/20 11:56:15 stsp Exp $ */
+/* $OpenBSD: bwi.c,v 1.104 2014/07/20 11:57:05 stsp Exp $ */
/*
* Copyright (c) 2007 The DragonFly Project. All rights reserved.
@@ -7856,7 +7856,7 @@ bwi_dma_mbuf_create(struct bwi_softc *sc)
for (k = 0; k < j; ++k) {
bus_dmamap_destroy(sc->sc_dmat,
- rbd->rbd_buf[j].rb_dmap);
+ rbd->rbd_buf[k].rb_dmap);
}
bus_dmamap_destroy(sc->sc_dmat,
rbd->rbd_tmp_dmap);