diff options
author | Julia Lawall <julia@diku.dk> | 2007-11-20 01:50:01 -0500 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-12-05 08:37:57 -0500 |
commit | 55c45a3ad8e5f9488426332b7baca0261ec2f816 (patch) | |
tree | 3e4eedf76bcc849f81e37d3ec8d38e9b22fa9a85 /arch/sparc64/kernel | |
parent | 874a5f87f53f80b798140b07fcf81f8d3718b3cc (diff) |
[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: Julia Lawall <julia@diku.dk>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc64/kernel')
-rw-r--r-- | arch/sparc64/kernel/isa.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/sparc64/kernel/isa.c b/arch/sparc64/kernel/isa.c index 0f19dce1c905..b5f7b354084f 100644 --- a/arch/sparc64/kernel/isa.c +++ b/arch/sparc64/kernel/isa.c | |||
@@ -155,6 +155,7 @@ void __init isa_init(void) | |||
155 | isa_br = kzalloc(sizeof(*isa_br), GFP_KERNEL); | 155 | isa_br = kzalloc(sizeof(*isa_br), GFP_KERNEL); |
156 | if (!isa_br) { | 156 | if (!isa_br) { |
157 | printk(KERN_DEBUG "isa: cannot allocate sparc_isa_bridge"); | 157 | printk(KERN_DEBUG "isa: cannot allocate sparc_isa_bridge"); |
158 | pci_dev_put(pdev); | ||
158 | return; | 159 | return; |
159 | } | 160 | } |
160 | 161 | ||
@@ -168,6 +169,7 @@ void __init isa_init(void) | |||
168 | printk(KERN_DEBUG "isa: device registration error for %s!\n", | 169 | printk(KERN_DEBUG "isa: device registration error for %s!\n", |
169 | dp->path_component_name); | 170 | dp->path_component_name); |
170 | kfree(isa_br); | 171 | kfree(isa_br); |
172 | pci_dev_put(pdev); | ||
171 | return; | 173 | return; |
172 | } | 174 | } |
173 | 175 | ||