1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-09-07 19:52:15 +02:00
Files
u-boot-megous/drivers/dma
Heinrich Schuchardt 4908067b8f dma: bcm6348: incorrect buffer allocation
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 <xypron.glpk@gmx.de>
2021-01-18 15:23:06 -05:00
..
2019-04-11 20:07:12 -04:00