diff options
author | Tom Rini <trini@konsulko.com> | 2017-04-18 10:31:39 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-04-18 10:31:39 -0400 |
commit | f83845829aed451d86207f46cd956f3210bd2591 (patch) | |
tree | c1f132dbd2368b130f9f8ef88c64ed754f00f944 | |
parent | 54f302f1197a490c2c4e3564c698ecd090d5013b (diff) | |
parent | 18f41f2fa2d021f7baad37ba6fbe01b49309afbb (diff) |
Merge branch 'master' of git://git.denx.de/u-boot-ubi
-rw-r--r-- | cmd/ubi.c | 2 |
1 files changed, 1 insertions, 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; } |