From d4e7486f743abc4647e0fae2df002490ed4e1597 Mon Sep 17 00:00:00 2001 From: fjoe Date: Mon, 9 Feb 2009 16:53:37 +0000 Subject: [PATCH] Destroy TX tag outside of loop scope. Found with: Coverity Prevent(tm) CID: 3886 --- sys/pci/if_rl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/pci/if_rl.c b/sys/pci/if_rl.c index 20f45042913..dc3e3b5c093 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) { -- 2.45.2