[U-Boot] [PATCH] splash: Prevent splash_load_fs from writing to 0x0

Anatolij Gustschin agust at denx.de
Mon Feb 27 15:14:05 UTC 2017


On Fri, 24 Feb 2017 17:46:10 +0100
Jonathan Golder jonathan.golder at kurz-elektronik.de wrote:

> 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 at kurz-elektronik.de>
> Cc: Anatolij Gustschin <agust at denx.de>
> ---
>  common/splash_source.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)

applied to u-boot-video/master, thanks!

--
Anatolij


More information about the U-Boot mailing list