splash_source: Verify FIT magic
authorNiko Mauno <niko.mauno@vaisala.com>
Thu, 3 Aug 2017 06:53:24 +0000 (09:53 +0300)
committerAnatolij Gustschin <agust@denx.de>
Mon, 4 Sep 2017 21:53:47 +0000 (23:53 +0200)
commita7126edcb321e6d02e5d83a6f4a7eeac777c1fe2
tree9c2ad9b3541ee107cf97c8844bd748af466e41bf
parentf8ba7f27740b42f17bf145d0e1e5aec66ac8dc0e
splash_source: Verify FIT magic

Before reading entire FIT image, add sanity check by testing image
header against FDT_MAGIC. This should help avoid problems in situations
where FIT is not yet available from storage device, for example when
performing initial programming of device.

Cc: Anatolij Gustschin <agust@denx.de>
Acked-by: Tomas Melin <tomas.melin@vaisala.com>
common/splash_source.c