From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Thu, 30 Nov 2017 10:36:06 -0500 Subject: [U-Boot] [U-Boot, 1/1] fs: avoid possible NULL dereference in fs_devread In-Reply-To: <20171119224921.30613-1-xypron.glpk@gmx.de> References: <20171119224921.30613-1-xypron.glpk@gmx.de> Message-ID: <20171130153606.GA3587@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sun, Nov 19, 2017 at 11:49:21PM +0100, Heinrich Schuchardt wrote: > It is unwise to first dereference a variable > and then to check if it was NULL. > > Signed-off-by: Heinrich Schuchardt > Reviewed-by: Marek Behun > Reviewed-by: Bin Meng Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: