diff options
author | Scott Wood <scottwood@freescale.com> | 2007-03-12 20:41:48 (GMT) |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-03-13 10:15:55 (GMT) |
commit | 9dd2c31ab89a12571db89648bcc9992cf71b63d8 (patch) | |
tree | abb5ef017f11fc22296dc958b5bf119293247427 /arch/powerpc/boot/flatdevtree.c | |
parent | 78438b36011d8ef7d28ef63a30b11801be1eea71 (diff) | |
download | linux-fsl-qoriq-9dd2c31ab89a12571db89648bcc9992cf71b63d8.tar.xz |
[POWERPC] bootwrapper: Modify *pp, not *p, in ft_shuffle().
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>
Diffstat (limited to 'arch/powerpc/boot/flatdevtree.c')
-rw-r--r-- | arch/powerpc/boot/flatdevtree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/boot/flatdevtree.c b/arch/powerpc/boot/flatdevtree.c index 0fa4f98..f2a29ca 100644 --- 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; + *pp -= nextra; cxt->rgn[rgn].start -= nextra; cxt->rgn[rgn].size += nextra; return 1; |