From: Tom Rini Date: Fri, 9 Mar 2018 13:29:27 -0500 Subject: [U-Boot] [U-Boot, v2, 1/1] scripts/coccinelle: add some more coccinelle tests In-Reply-To: <20180308195617.25979-1-xypron.glpk@gmx.de> References: <20180308195617.25979-1-xypron.glpk@gmx.de> Message-ID: <20180309182927.GV1770@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 Thu, Mar 08, 2018 at 08:56:17PM +0100, Heinrich Schuchardt wrote: > kmerr: verify that malloc and calloc are followed by a check to verify > that we are not out of memory. > > badzero: Compare pointer-typed values to NULL rather than 0 > > Both checks are copied from the Linux kernel archive. > > Signed-off-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: