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

sw:drv: fix kcalloc argument order

Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent d851f7a6
...@@ -442,8 +442,8 @@ static struct dma_async_tx_descriptor *gn412x_dma_prep_slave_sg( ...@@ -442,8 +442,8 @@ static struct dma_async_tx_descriptor *gn412x_dma_prep_slave_sg(
gn412x_dma_tx->sg_len = sg_len; gn412x_dma_tx->sg_len = sg_len;
/* Configure the hardware for this transfer */ /* 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,
gn412x_dma_tx->sg_len, sizeof(struct gn412x_dma_tx_hw *),
GFP_KERNEL); GFP_KERNEL);
if (!gn412x_dma_tx->sgl_hw) if (!gn412x_dma_tx->sgl_hw)
goto err_alloc_sglhw; 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