Commit caea3b92 authored by Jaco Hofmann's avatar Jaco Hofmann Committed by Jaco A. Hofmann
Browse files

Fix segfault when unloading tlkm

(cherry picked from commit e23a9ad7af796de71adcdd37c89a2ec5e539e7a1)
parent 742bc1e9
......@@ -69,6 +69,8 @@ error_pci_en:
static void release_device(struct tlkm_pcie_device *pdev)
{
struct pci_dev *dev = pdev->pdev;
dev_set_drvdata(&dev->dev, NULL);
pci_release_regions(pdev->pdev);
pci_disable_device(pdev->pdev);
}
......
Supports Markdown
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