Commit 034de672 authored by Federico Vaga's avatar Federico Vaga

sw:drv: fix kcalloc argument order

Signed-off-by: Federico Vaga's avatarFederico Vaga <>
parent d851f7a6
......@@ -442,8 +442,8 @@ static struct dma_async_tx_descriptor *gn412x_dma_prep_slave_sg(
gn412x_dma_tx->sg_len = sg_len;
/* Configure the hardware for this transfer */
gn412x_dma_tx->sgl_hw = kcalloc(sizeof(struct gn412x_dma_tx_hw *),
gn412x_dma_tx->sgl_hw = kcalloc(gn412x_dma_tx->sg_len,
sizeof(struct gn412x_dma_tx_hw *),
if (!gn412x_dma_tx->sgl_hw)
goto err_alloc_sglhw;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment