From: Tom Rini Date: Tue, 19 Jun 2018 14:42:25 -0400 Subject: [U-Boot] [U-Boot, v2, 2/8] console: Fix handling of NULL global_data In-Reply-To: <20180612060502.196817-3-sjg@chromium.org> References: <20180612060502.196817-3-sjg@chromium.org> Message-ID: <20180619184225.GV4609@bill-the-cat.ec.rr.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tue, Jun 12, 2018 at 12:04:56AM -0600, Simon Glass wrote: > Both putc() and puts() can be called before global_data is set up. Some of > the code paths don't handle this correctly. Add an explicit test before > any member is accessed. > > Reported-by: Coverity (CID: 169030) > Signed-off-by: Simon Glass > Reviewed-by: Heinrich Schuchardt 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: