Skip to content

Commit

Permalink
staging: rtl8192e: Fix unload/reload problem
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
lwfinger committed Aug 24, 2011
1 parent f609499 commit 6689817
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/staging/rtl8192e/rtl_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 6689817

Please sign in to comment.