From: Tom Rini Date: Tue, 19 Jan 2021 08:05:24 -0500 Subject: [PATCH 1/1] dma: bcm6348: incorrect buffer allocation In-Reply-To: <20201227092600.6000-1-xypron.glpk@gmx.de> References: <20201227092600.6000-1-xypron.glpk@gmx.de> Message-ID: <20210119130524.GY9782@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 Sun, Dec 27, 2020 at 10:26:00AM +0100, Heinrich Schuchardt wrote: > Calling calloc() for 0 members does not make any sense. > Setting ch_priv->busy_desc = NULL for ch_priv->desc_cnt > 0 is equally > unreasonable. > > The current code will lead to a NULL dereference in bcm6348_iudma_enable(). > > The assignments for ch_priv->busy_desc are obviously swapped. > > 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: 659 bytes Desc: not available URL: