]> git.ipfire.org Git - people/ms/u-boot.git/commit
splash: Prevent splash_load_fs from writing to 0x0
authorJonathan Golder <jonathan.golder@kurz-elektronik.de>
Fri, 24 Feb 2017 16:46:10 +0000 (17:46 +0100)
committerAnatolij Gustschin <agust@denx.de>
Mon, 27 Feb 2017 15:08:06 +0000 (16:08 +0100)
commit3cc6e7070dea2c81ef8f052740e9a9cc791c57f4
tree868463180cc32b892ad15a8408a3f44d7402308b
parenta0f3e3df4adc451bf56159c0672e570f9c934ee8
splash: Prevent splash_load_fs from writing to 0x0

Passing NULL to fs_read() for actread value results in hanging U-Boot
at least on our ARM plattform (TI AM335x). Since fs_read() and
following functions do not catch nullpointers, writing to 0x0 occurs.

Passing a local dummy var instead of NULL solves this issue.

Signed-off-by: Jonathan Golder <jonathan.golder@kurz-elektronik.de>
Cc: Anatolij Gustschin <agust@denx.de>
common/splash_source.c