Re: [U-Boot] [PATCH] cmd_jffs2: Fix get_part_sector_size_nor() overflow bug

2011-01-18 Thread Wolfgang Denk
Dear Peter Tyser, In message 1293745676-1557-1-git-send-email-pty...@xes-inc.com you wrote: When a flash partition was positioned at the very top of a 32-bit memory map (eg located at 0xf800 with a size of 0x800) get_part_sector_size_nor() would incorrectly calculate the partition's

[U-Boot] [PATCH] cmd_jffs2: Fix get_part_sector_size_nor() overflow bug

2010-12-30 Thread Peter Tyser
When a flash partition was positioned at the very top of a 32-bit memory map (eg located at 0xf800 with a size of 0x800) get_part_sector_size_nor() would incorrectly calculate the partition's ending address to 0x0 due to overflow. When the overflow occurred get_part_sector_size_nor()