* [PATCH] PPC64: ISA device tree node refcount fix
@ 2004-07-29 18:23 Paul Mackerras
0 siblings, 0 replies; only message in thread
From: Paul Mackerras @ 2004-07-29 18:23 UTC (permalink / raw)
To: akpm; +Cc: linux-kernel, anton, John Rose
The patch below moves a misplaced of_node_put(). In the existing code, the
node in question is used just after its refcount is decremented. Please apply.
Signed-off-by: John Rose <johnrose@austin.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
diff -Nru a/arch/ppc64/kernel/pSeries_pci.c b/arch/ppc64/kernel/pSeries_pci.c
--- a/arch/ppc64/kernel/pSeries_pci.c Mon Jul 26 17:47:44 2004
+++ b/arch/ppc64/kernel/pSeries_pci.c Mon Jul 26 17:47:44 2004
@@ -284,10 +284,10 @@
isa_dn = of_find_node_by_type(NULL, "isa");
if (isa_dn) {
isa_io_base = pci_io_base;
- of_node_put(isa_dn);
pci_process_ISA_OF_ranges(isa_dn,
hose->io_base_phys,
hose->io_base_virt);
+ of_node_put(isa_dn);
/* Allow all IO */
io_page_mask = -1;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-07-29 18:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-07-29 18:23 [PATCH] PPC64: ISA device tree node refcount fix Paul Mackerras
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®