projects
/
profile
/
ivi
/
kernel-x86-ivi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
78438b3
)
[POWERPC] bootwrapper: Modify *pp, not *p, in ft_shuffle().
author
Scott Wood
<scottwood@freescale.com>
Mon, 12 Mar 2007 20:41:48 +0000
(14:41 -0600)
committer
Paul Mackerras
<paulus@samba.org>
Tue, 13 Mar 2007 10:15:55 +0000
(21:15 +1100)
Move the caller's pointer back to match the change in the region's start,
rather than alter a byte of the device tree's content.
Signed-off-by: Scott Wood <scottwood@freescale.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/boot/flatdevtree.c
patch
|
blob
|
history
diff --git
a/arch/powerpc/boot/flatdevtree.c
b/arch/powerpc/boot/flatdevtree.c
index
0fa4f98
..
f2a29ca
100644
(file)
--- a/
arch/powerpc/boot/flatdevtree.c
+++ b/
arch/powerpc/boot/flatdevtree.c
@@
-246,7
+246,7
@@
static int ft_shuffle(struct ft_cxt *cxt, char **pp, enum ft_rgn_id rgn,
if (rgn == FT_STRUCT)
ft_node_update_before(cxt, p, -nextra);
}
- *p -= nextra;
+ *p
p
-= nextra;
cxt->rgn[rgn].start -= nextra;
cxt->rgn[rgn].size += nextra;
return 1;