diff options
author | Peter Tyser <ptyser@xes-inc.com> | 2010-12-30 21:47:56 (GMT) |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2011-01-18 23:04:43 (GMT) |
commit | 141053d60ac459bc3859c06fe7cf16160077f937 (patch) | |
tree | 6b40cda4be9cb7bfb132bed3e02ca26cfa2ff59c /board/zeus | |
parent | eddf52b593c6c5dfa1c0ce51a6656e3635175feb (diff) | |
download | u-boot-fsl-qoriq-141053d60ac459bc3859c06fe7cf16160077f937.tar.xz |
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>
Diffstat (limited to 'board/zeus')
0 files changed, 0 insertions, 0 deletions