spl: atf: Fix uninitialized pointer to bl31_image_info
authorFrieder Schrempf <frieder.schrempf@kontron.de>
Thu, 27 Jun 2019 07:03:16 +0000 (07:03 +0000)
committerKever Yang <kever.yang@rock-chips.com>
Tue, 2 Jul 2019 02:30:02 +0000 (10:30 +0800)
commita239b82dad03ad942aaf5fbbda672e882968488c
treed04ab42a877e7ea02b518d8776a02920e4370347
parent8c2d42d526574a6d972d7711660b652d2aeba7e1
spl: atf: Fix uninitialized pointer to bl31_image_info

The pointer to struct atf_image_info in
bl31_params_mem.bl31_params.bl31_image_info is not initialized before
being dereferenced. This can cause U-Boot to crash right before jumping
to the BL31 ATF binary.

Signed-off-by: Frieder Schrempf <frieder.schrempf@kontron.de>
Fixes: bcc1726a7bdd ("spl: add support to booting with ATF")
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
common/spl/spl_atf.c