projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
rockchip: video: rk3399: enable HDMI output (from the rk_vop) for the RK3399
[oweals/u-boot.git]
/
cmd
/
ubi.c
diff --git
a/cmd/ubi.c
b/cmd/ubi.c
index efc43ffde91ec5863adfc3382087afcca5358ba9..222be5a3576cb7aa96121b449889766550d1885d 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;
}