commit | a883d77f362ec703574631fd5c3d6d8d64c82011 | [log] [tgz] |
---|---|---|
author | Geoff Levand <geoffrey.levand@am.sony.com> | Fri Mar 20 10:13:26 2009 -0700 |
committer | Geoff Levand <geoffrey.levand@am.sony.com> | Fri Mar 20 10:13:26 2009 -0700 |
tree | 3579210b616cb76bd065fd7262fa62997ae82b6f | |
parent | 7ade6a6edcf38ed949b7227924f5073febd58b63 [diff] |
lib/flash.c: Fix image size check in os_area_image_write The os_area_image_write() routine was not checking the size of the supplied image correctly. If the image was too large to fit os_area_image_write() would silently continue and write part of the image to flash. The only indicator that an error occured was that the printed size of the written image was smaller than the actual size of the image. Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>