From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anatolij Gustschin Date: Mon, 27 Feb 2017 16:14:05 +0100 Subject: [U-Boot] [PATCH] splash: Prevent splash_load_fs from writing to 0x0 In-Reply-To: <1487954770-7746-1-git-send-email-jonathan.golder@kurz-elektronik.de> References: <1487954770-7746-1-git-send-email-jonathan.golder@kurz-elektronik.de> Message-ID: <20170227161405.0b6063bb@crub> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 > Cc: Anatolij Gustschin > --- > common/splash_source.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) applied to u-boot-video/master, thanks! -- Anatolij