commit | f83845829aed451d86207f46cd956f3210bd2591 | [log] [tgz] |
---|---|---|
author | Tom Rini <trini@konsulko.com> | Tue Apr 18 10:31:39 2017 -0400 |
committer | Tom Rini <trini@konsulko.com> | Tue Apr 18 10:31:39 2017 -0400 |
tree | c1f132dbd2368b130f9f8ef88c64ed754f00f944 | |
parent | 54f302f1197a490c2c4e3564c698ecd090d5013b [diff] | |
parent | 18f41f2fa2d021f7baad37ba6fbe01b49309afbb [diff] |
Merge branch 'master' of git://git.denx.de/u-boot-ubi
diff --git a/cmd/ubi.c b/cmd/ubi.c index efc43ff..222be5a 100644 --- a/cmd/ubi.c +++ b/cmd/ubi.c
@@ -308,7 +308,7 @@ 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; }