Comments

When fdt_fixup_memory_banks is called with 2-cell address and size
fields in the device-tree (IE: 64-bit address and size), then it will
overflow its on-stack "tmp" buffer.
This fixes the buffer size and adds a comment explaining how many bytes
need to be allocated per record.
Signed-off-by: Kyle Moffett <Kyle.D.Moffett@boeing.com>
Cc: Jerry Van Baren <vanbaren@cideas.com>
---
Changelog:
v2: Resubmitted separately from the other HWW-1U-1A changes.
common/fdt_support.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

On 02/23/2011 11:18 AM, Kyle Moffett wrote:
> When fdt_fixup_memory_banks is called with 2-cell address and size> fields in the device-tree (IE: 64-bit address and size), then it will> overflow its on-stack "tmp" buffer.>> This fixes the buffer size and adds a comment explaining how many bytes> need to be allocated per record.>> Signed-off-by: Kyle Moffett<Kyle.D.Moffett@boeing.com>> Cc: Jerry Van Baren<vanbaren@cideas.com>> ---> Changelog:> v2: Resubmitted separately from the other HWW-1U-1A changes.
Applied to u-boot-fdt, thanks.
gvb