diff options
author | Nishant Sarmukadam <nishants@marvell.com> | 2012-11-06 17:52:48 +0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-11-14 23:56:09 +0400 |
commit | ff7aa96f669d81b51339f7a0faf7ca37ed841ef1 (patch) | |
tree | 2c3908287dee5a4161bf6dd6aefee515767710c0 /drivers/net/wireless/mwl8k.c | |
parent | fd712f5f5e0723fbbd3720983b3fa2189b2e10f8 (diff) | |
download | linux-ff7aa96f669d81b51339f7a0faf7ca37ed841ef1.tar.xz |
mwl8k: Unmap the pci DMA address in xmit error path
We should unmap the DMA address in the error path, else it
causes resource leaks. Fix this.
Signed-off-by: Nishant Sarmukadam <nishants@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/mwl8k.c')
-rw-r--r-- | drivers/net/wireless/mwl8k.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/mwl8k.c b/drivers/net/wireless/mwl8k.c index 996176596e02..5b5b9ecbf1f9 100644 --- a/drivers/net/wireless/mwl8k.c +++ b/drivers/net/wireless/mwl8k.c @@ -2005,6 +2005,8 @@ mwl8k_txq_xmit(struct ieee80211_hw *hw, spin_unlock(&priv->stream_lock); } spin_unlock_bh(&priv->tx_lock); + pci_unmap_single(priv->pdev, dma, skb->len, + PCI_DMA_TODEVICE); dev_kfree_skb(skb); return; } |