From: Tom Rini Date: Tue, 21 Nov 2017 08:05:29 -0500 Subject: [U-Boot] [U-Boot, 1/1] kconfig/symbol.c: use correct pointer type argument for sizeof In-Reply-To: <20171108211354.16683-1-xypron.glpk@gmx.de> References: <20171108211354.16683-1-xypron.glpk@gmx.de> Message-ID: <20171121130529.GA10194@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 Wed, Nov 08, 2017 at 10:13:54PM +0100, Heinrich Schuchardt wrote: > sym_arr is of type struct symbol **. > So in malloc we need sizeof(struct symbol *). > > The problem was indicated by coccinelle. > > 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: