diff options
author | andrea merello <andrea.merello@gmail.com> | 2014-02-18 02:10:41 +0100 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2014-02-28 20:08:27 +0100 |
commit | 0269da281599fba2bc8bed30953d5a3ff3b083e5 (patch) | |
tree | f438cf7f223fb866ea13ab760a2c7732d366e067 /drivers/net/wireless/rtl818x | |
parent | rtl818x: Explicitly enable contetion window (diff) | |
download | linux-0269da281599fba2bc8bed30953d5a3ff3b083e5.tar.xz 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')
-rw-r--r-- | drivers/net/wireless/rtl818x/rtl8180/dev.c | 2 |
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); |