imx-bbu-nand-fcb: Check the required space a bit earlier
If the partition size is too small for imx_bbu_nand_update(),
this can lead to an infinite loop in the imx_bbu_firmware_fcb_start_page()
function, because imx_bbu_firmware_max_blocks() returns zero.
Fix this by place imx_bbu_firmware_max_blocks() a bit early.

Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent fbb3f53 commit 6b35641c326a0a1b98fa77fab995bf77872747d8
@Alexander Shiyan Alexander Shiyan authored on 25 Dec 2018
Sascha Hauer committed on 3 Jan 2019
Showing 1 changed file
View
common/imx-bbu-nand-fcb.c