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>
1 parent 8a6a9fb commit 5eadd11d4795afb6b521b5c3249c6341c0be7117
@Andrey Smirnov Andrey Smirnov authored on 7 Mar 2019
Sascha Hauer committed on 11 Mar 2019
Showing 1 changed file
View
common/state/backend_bucket_circular.c