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

Commit 55c45a3a authored by Julia Lawall's avatar Julia Lawall Committed by David S. Miller
Browse files

[SPARC64]: Add missing pci_dev_put



There should be a pci_dev_put when breaking out of a loop that iterates
over calls to pci_get_device and similar functions.

Signed-off-by: default avatarJulia Lawall <julia@diku.dk>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 874a5f87
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -155,6 +155,7 @@ void __init isa_init(void)
		isa_br = kzalloc(sizeof(*isa_br), GFP_KERNEL);
		if (!isa_br) {
			printk(KERN_DEBUG "isa: cannot allocate sparc_isa_bridge");
			pci_dev_put(pdev);
			return;
		}

@@ -168,6 +169,7 @@ void __init isa_init(void)
			printk(KERN_DEBUG "isa: device registration error for %s!\n",
			       dp->path_component_name);
			kfree(isa_br);
			pci_dev_put(pdev);
			return;
		}