ARM: i.MX: bbu: Fix lseek error check in imx_bbu_external_nand_update()
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 98ceb5f commit 935beb58ca8d00560ee5318532e5b08127ba8b48
@Andrey Smirnov Andrey Smirnov authored on 7 Mar 2019
Sascha Hauer committed on 11 Mar 2019
Showing 1 changed file
View
arch/arm/mach-imx/imx-bbu-external-nand.c