summaryrefslogtreecommitdiffstats
path: root/commands
diff options
context:
space:
mode:
authorAndrey Smirnov <andrew.smirnov@gmail.com>2019-03-06 23:49:24 -0800
committerSascha Hauer <s.hauer@pengutronix.de>2019-03-11 07:55:46 +0100
commit5eadd11d4795afb6b521b5c3249c6341c0be7117 (patch)
tree966988d993260c319cbd7c4ebc2f15f77c072dd7 /commands
parent8a6a9fbcecffab1b076edfad94d4f32bb2cc9435 (diff)
downloadbarebox-5eadd11d4795afb6b521b5c3249c6341c0be7117.tar.gz
state: Fix lseek error check in state_mtd_peb_write()
Don't use 'int' to store lseek()'s return value to avoid problems with large seek offsets. While at it, make sure to populate return error code from 'errno'. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands')
0 files changed, 0 insertions, 0 deletions