mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-03 17:04:50 -04:00
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>
This commit is contained in:
committed by
John W. Linville
parent
e74075a936
commit
0269da2815
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user