]> Git Repo - linux.git/commitdiff
net/ism: Add missing calls to disable bus-mastering
authorStefan Raspl <[email protected]>
Mon, 23 Jan 2023 18:17:46 +0000 (19:17 +0100)
committerDavid S. Miller <[email protected]>
Wed, 25 Jan 2023 09:46:48 +0000 (09:46 +0000)
Signed-off-by: Stefan Raspl <[email protected]>
Signed-off-by: Jan Karcher <[email protected]>
Signed-off-by: Wenjia Zhang <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
drivers/s390/net/ism_drv.c

index dfd401d9e36238118048fb8b29dec495c429e584..e253949aa97521c54854fa8528a97b1a86a91914 100644 (file)
@@ -582,6 +582,7 @@ static int ism_probe(struct pci_dev *pdev, const struct pci_device_id *id)
 err_free:
        smcd_free_dev(ism->smcd);
 err_resource:
+       pci_clear_master(pdev);
        pci_release_mem_regions(pdev);
 err_disable:
        pci_disable_device(pdev);
@@ -612,6 +613,7 @@ static void ism_remove(struct pci_dev *pdev)
        ism_dev_exit(ism);
 
        smcd_free_dev(ism->smcd);
+       pci_clear_master(pdev);
        pci_release_mem_regions(pdev);
        pci_disable_device(pdev);
        dev_set_drvdata(&pdev->dev, NULL);
This page took 0.055926 seconds and 4 git commands to generate.