Files
u-boot-tk1-som/common
Peter Tyser 141053d60a cmd_jffs2: Fix get_part_sector_size_nor() overflow bug
When a flash partition was positioned at the very top of a 32-bit memory
map (eg located at 0xf8000000 with a size of 0x8000000)
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() would falsely return a sector size of 0.
A sector size of 0 results in subsequent jffs2 operations failing.

To workaround the overflow subtract 1 from calculated address of
the partition endpoint.

Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
2011-01-19 00:04:43 +01:00
..
2011-01-09 18:02:06 +01:00
2010-11-28 21:58:24 +01:00
2010-07-24 20:54:46 +02:00
2011-01-09 18:03:10 +01:00
2011-01-09 18:06:50 +01:00
2010-09-21 21:37:08 +02:00
2010-12-17 14:32:12 -06:00
2010-07-16 10:55:09 -05:00
2010-10-12 23:31:10 +02:00
2003-06-27 21:31:46 +00:00
2010-11-28 21:47:24 +01:00
2010-11-28 21:58:27 +01:00
2010-01-18 00:23:00 +01:00
2010-07-14 22:41:39 +02:00
2011-01-09 18:06:50 +01:00
2002-08-17 09:36:01 +00:00
2008-10-18 21:54:03 +02:00