summaryrefslogtreecommitdiffstats
path: root/lib/getopt.c
diff options
context:
space:
mode:
authorMartin Hundebøll <martin@geanix.com>2020-11-30 12:11:32 +0100
committerTom Rini <trini@konsulko.com>2021-01-22 16:58:55 -0500
commit09779488a924dbc4eb3b4ae145632f22b7f5a36c (patch)
tree5818c7c13a61bc92e4b4271fd8bb76c919179c31 /lib/getopt.c
parent603e26f76346a36594eda78daa2b7d95ce96b497 (diff)
downloadu-boot-09779488a924dbc4eb3b4ae145632f22b7f5a36c.tar.gz
u-boot-09779488a924dbc4eb3b4ae145632f22b7f5a36c.tar.xz
u-boot-09779488a924dbc4eb3b4ae145632f22b7f5a36c.zip
tools: env: return error if ubi_update_start() fails
The UBI_IOCVOLUP ioctl can fail if exclusive access to the volume isn't obtained. If this happens, the flush operation doesn't return error, leaving the caller without knowledge of missing flush. Fix this by forwarding the error (-1) from ubi_update_start(). Fixes: 34255b92e6e ("tools: env: Add support for direct read/write UBI volumes") Signed-off-by: Martin Hundebøll <martin@geanix.com>
Diffstat (limited to 'lib/getopt.c')
0 files changed, 0 insertions, 0 deletions