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: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
f60949901c
commit
66898177e7
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user