From: andrea merello Date: Tue, 18 Feb 2014 01:10:41 +0000 (+0100) Subject: rtl818x: pci_iomap() should pair with pci_iounmap() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0269da281599fba2bc8bed30953d5a3ff3b083e5;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Andrea Merello Signed-off-by: John W. Linville --- 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);