From: Heinrich Schuchardt Date: Sat, 9 Jun 2018 21:32:13 +0200 Subject: [U-Boot] [PATCH 2/8] console: Fix handling of NULL global_data In-Reply-To: <20180609182235.33532-3-sjg@chromium.org> References: <20180609182235.33532-1-sjg@chromium.org> <20180609182235.33532-3-sjg@chromium.org> Message-ID: <8de4691e-efe3-433e-0e02-4ca8d7c55d90@gmx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 06/09/2018 08:22 PM, 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