uimage: Fix lseek error check in uimage_load()
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 eae44ac commit cb4b3d397361e04a5de1da71e84522f6bfba11ba
@Andrey Smirnov Andrey Smirnov authored on 7 Mar 2019
Sascha Hauer committed on 11 Mar 2019
Showing 1 changed file
View
common/uimage.c