Commit 66898177 authored by Larry Finger's avatar 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: default avatarLarry Finger <Larry.Finger@lwfinger.net>
parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment