提交 66898177 编写于 作者: L Larry Finger

staging: rtl8192e: Fix unload/reload problem

The driver is not releasing the memory region that was mapped. As a result,
the driver cannot be unloaded and reloaded.
Signed-off-by: NLarry Finger <Larry.Finger@lwfinger.net>
上级 f6094990
......@@ -3122,6 +3122,11 @@ static void __devexit rtl8192_pci_disconnect(struct pci_dev *pdev)
if (priv->scan_cmd)
kfree(priv->scan_cmd);
if (dev->mem_start != 0) {
iounmap((void *)dev->mem_start);
release_mem_region(pci_resource_start(pdev, 1),
pci_resource_len(pdev, 1));
}
} else{
priv=rtllib_priv(dev);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册