Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 66898177 authored by Larry Finger's avatar Larry Finger
Browse files

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
Loading
Loading
Loading
Loading
+5 −0
Original line number Original line Diff line number Diff line
@@ -3122,6 +3122,11 @@ static void __devexit rtl8192_pci_disconnect(struct pci_dev *pdev)
		if (priv->scan_cmd)
		if (priv->scan_cmd)
			kfree(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{
	} else{
		priv=rtllib_priv(dev);
		priv=rtllib_priv(dev);
        }
        }