From mboxrd@z Thu Jan 1 00:00:00 1970 From: York Sun Date: Fri, 30 Oct 2015 09:12:48 -0700 Subject: [U-Boot] [PATCH] armv8/fsl-lsch3: fdt: Check the pointer returned from call to a function may be NULL In-Reply-To: <1441075647-11274-1-git-send-email-b18965@freescale.com> References: <1441075647-11274-1-git-send-email-b18965@freescale.com> Message-ID: <56339700.2000206@freescale.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 08/31/2015 07:47 PM, Alison Wang wrote: > Pointer 'reg' returned from call to function 'fdt_getprop' may be > NULL, will be passed to function and may be dereferenced there by > passing argument 1 to function 'of_read_number'. So check pointer > 'reg' first. > > Signed-off-by: Alison Wang > --- Applied to u-boot-fsl-qoriq. Awaiting upstream. Thanks. York