The patch titled
     cell: fix cbe_reg.c for legacy SLOF tree.
has been added to the -mm tree.  Its filename is
     cell-fix-cbe_regc-for-legacy-slof-tree.patch

*** Remember to use Documentation/SubmitChecklist when testing your code ***

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

------------------------------------------------------
Subject: cell: fix cbe_reg.c for legacy SLOF tree.
From: Jean-Christophe DUBOIS <[EMAIL PROTECTED]>

Some legacy SLOF device trees have a "be" node but no "cpus" properties under
it.

So let's fix the crash until the device tree is fixed.

Signed-off-by: Jean-Christophe DUBOIS <[EMAIL PROTECTED]>
Acked-by: Christian Kraff <[EMAIL PROTECTED]>
Signed-off-by: Arnd Bergmann <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
---

 arch/powerpc/platforms/cell/cbe_regs.c |    5 +++++
 1 files changed, 5 insertions(+)

diff -puN 
arch/powerpc/platforms/cell/cbe_regs.c~cell-fix-cbe_regc-for-legacy-slof-tree 
arch/powerpc/platforms/cell/cbe_regs.c
--- 
a/arch/powerpc/platforms/cell/cbe_regs.c~cell-fix-cbe_regc-for-legacy-slof-tree
+++ a/arch/powerpc/platforms/cell/cbe_regs.c
@@ -174,6 +174,11 @@ static struct device_node *cbe_get_be_no
 
                cpu_handle = of_get_property(np, "cpus", &len);
 
+               if (!cpu_handle) {
+                       WARN_ON_ONCE(!cpu_handle);
+                       continue;
+               }
+
                for (i=0; i<len; i++)
                        if (of_find_node_by_phandle(cpu_handle[i]) == 
of_get_cpu_node(cpu_id, NULL))
                                return np;
_

Patches currently in -mm which might be from [EMAIL PROTECTED] are

cell-fix-cbe_cpufreq-for-legacy-slof-tree.patch
cell-fix-cbe_regc-for-legacy-slof-tree.patch
cell-fix-cbe_thermal-for-legacy-slof-tree.patch
cell-allow-linux-to-map-cell-regs-on-legacy-slof-tree.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to