projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
54f302f
)
Merge branch 'master' of git://git.denx.de/u-boot-ubi
author
Tom Rini
<trini@konsulko.com>
Tue, 18 Apr 2017 14:31:39 +0000
(10:31 -0400)
committer
Tom Rini
<trini@konsulko.com>
Tue, 18 Apr 2017 14:31:39 +0000
(10:31 -0400)
cmd/ubi.c
patch
|
blob
|
history
diff --git
a/cmd/ubi.c
b/cmd/ubi.c
index
efc43ff
..
222be5a
100644
(file)
--- a/
cmd/ubi.c
+++ b/
cmd/ubi.c
@@
-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;
}