提交 0269da28 编写于 作者: A andrea merello 提交者: John W. Linville

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: NHuqiu Liu <liuhq11@mails.tsinghua.edu.cn>
Signed-off-by: NAndrea Merello <andrea.merello@gmail.com>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 e74075a9
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册