summaryrefslogtreecommitdiffstats
path: root/sys/pci/if_rl.c
diff options
context:
space:
mode:
authorfjoe <fjoe@FreeBSD.org>2009-02-09 16:53:37 +0000
committerfjoe <fjoe@FreeBSD.org>2009-02-09 16:53:37 +0000
commitd4e7486f743abc4647e0fae2df002490ed4e1597 (patch)
tree7e152f29c949b447b6c7e0a7e77db5467144c84e /sys/pci/if_rl.c
parent95eb58b803ea56258e8a3784dd6b04e5b62c4ddb (diff)
downloadFreeBSD-src-d4e7486f743abc4647e0fae2df002490ed4e1597.zip
FreeBSD-src-d4e7486f743abc4647e0fae2df002490ed4e1597.tar.gz
Destroy TX tag outside of loop scope.
Found with: Coverity Prevent(tm) CID: 3886
Diffstat (limited to 'sys/pci/if_rl.c')
-rw-r--r--sys/pci/if_rl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/pci/if_rl.c b/sys/pci/if_rl.c
index 20f4504..dc3e3b5 100644
--- a/sys/pci/if_rl.c
+++ b/sys/pci/if_rl.c
@@ -1151,9 +1151,9 @@ rl_dma_free(struct rl_softc *sc)
sc->rl_cdata.rl_tx_dmamap[i]);
sc->rl_cdata.rl_tx_dmamap[i] = NULL;
}
+ }
bus_dma_tag_destroy(sc->rl_cdata.rl_tx_tag);
sc->rl_cdata.rl_tx_tag = NULL;
- }
}
if (sc->rl_parent_tag != NULL) {
OpenPOWER on IntegriCloud