summaryrefslogtreecommitdiff
path: root/drivers/dma/zx296702_dma.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/dma/zx296702_dma.c')
-rw-r--r--drivers/dma/zx296702_dma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/zx296702_dma.c b/drivers/dma/zx296702_dma.c
index c017fcd8e07c..245d759d5ffc 100644
--- a/drivers/dma/zx296702_dma.c
+++ b/drivers/dma/zx296702_dma.c
@@ -441,7 +441,7 @@ static struct zx_dma_desc_sw *zx_alloc_desc_resource(int num,
kfree(ds);
return NULL;
}
- memset(ds->desc_hw, sizeof(struct zx_desc_hw) * num, 0);
+ memset(ds->desc_hw, 0, sizeof(struct zx_desc_hw) * num);
ds->desc_num = num;
return ds;
}