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> |
||
|---|---|---|
| .. | ||
| ti | ||
| Kconfig | ||
| MCD_dmaApi.c | ||
| MCD_tasks.c | ||
| MCD_tasksInit.c | ||
| Makefile | ||
| apbh_dma.c | ||
| bcm6348-iudma.c | ||
| dma-uclass.c | ||
| fsl_dma.c | ||
| keystone_nav.c | ||
| keystone_nav_cfg.c | ||
| lpc32xx_dma.c | ||
| sandbox-dma-test.c | ||
| ti-edma3.c | ||