mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-02-26 14:15:22 +01:00
Merge branch 'master' of git://git.denx.de/u-boot-ubi
This commit is contained in:
commit
f83845829a
1 changed files with 1 additions and 1 deletions
|
|
@ -308,7 +308,7 @@ int ubi_volume_begin_write(char *volume, void *buf, size_t size,
|
|||
return ENODEV;
|
||||
|
||||
rsvd_bytes = vol->reserved_pebs * (ubi->leb_size - vol->data_pad);
|
||||
if (size < 0 || size > rsvd_bytes) {
|
||||
if (size > rsvd_bytes) {
|
||||
printf("size > volume size! Aborting!\n");
|
||||
return EINVAL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue