summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/rtl818x/rtl8180/dev.c
diff options
context:
space:
mode:
authorandrea merello <andrea.merello@gmail.com>2014-02-18 02:10:41 +0100
committerJohn W. Linville <linville@tuxdriver.com>2014-02-28 14:08:27 -0500
commit0269da281599fba2bc8bed30953d5a3ff3b083e5 (patch)
treef438cf7f223fb866ea13ab760a2c7732d366e067 /drivers/net/wireless/rtl818x/rtl8180/dev.c
parente74075a936a894b85ddf25b882ac813323aae4ef (diff)
downloadlinux-0269da281599fba2bc8bed30953d5a3ff3b083e5.tar.gz
linux-0269da281599fba2bc8bed30953d5a3ff3b083e5.tar.bz2
linux-0269da281599fba2bc8bed30953d5a3ff3b083e5.zip
rtl818x: pci_iomap() should pair with pci_iounmap()
Currently the driver uses pci_iomap() but iounmap() is called in the error path Change to use pci_iounmap() instead. Reported-by: Huqiu Liu <liuhq11@mails.tsinghua.edu.cn> Signed-off-by: Andrea Merello <andrea.merello@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rtl818x/rtl8180/dev.c')
-rw-r--r--drivers/net/wireless/rtl818x/rtl8180/dev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/rtl818x/rtl8180/dev.c b/drivers/net/wireless/rtl818x/rtl8180/dev.c
index 470a1e32aa4e..bf59ff988952 100644
--- a/drivers/net/wireless/rtl818x/rtl8180/dev.c
+++ b/drivers/net/wireless/rtl818x/rtl8180/dev.c
@@ -1137,7 +1137,7 @@ static int rtl8180_probe(struct pci_dev *pdev,
return 0;
err_iounmap:
- iounmap(priv->map);
+ pci_iounmap(pdev, priv->map);
err_free_dev:
ieee80211_free_hw(dev);