Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0269da28 authored by andrea merello's avatar andrea merello Committed by John W. Linville
Browse files

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: default avatarHuqiu Liu <liuhq11@mails.tsinghua.edu.cn>
Signed-off-by: default avatarAndrea Merello <andrea.merello@gmail.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent e74075a9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);