Skip to content
Snippets Groups Projects
Commit f8384582 authored by Tom Rini's avatar Tom Rini
Browse files

Merge branch 'master' of git://git.denx.de/u-boot-ubi

parents 54f302f1 18f41f2f
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment