summaryrefslogtreecommitdiff
path: root/arch/sparc/kernel/prom_64.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sparc/kernel/prom_64.c')
-rw-r--r--arch/sparc/kernel/prom_64.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sparc/kernel/prom_64.c b/arch/sparc/kernel/prom_64.c
index e3969db4d58b..ce96c1cf6c3a 100644
--- a/arch/sparc/kernel/prom_64.c
+++ b/arch/sparc/kernel/prom_64.c
@@ -407,7 +407,7 @@ static char * __init get_one_property(phandle node, const char *name)
len = prom_getproplen(node, name);
if (len > 0) {
buf = prom_early_alloc(len);
- prom_getproperty(node, name, buf, len);
+ len = prom_getproperty(node, name, buf, len);
}
return buf;