summaryrefslogtreecommitdiff
path: root/drivers/dma/zx296702_dma.c
diff options
context:
space:
mode:
authorVinod Koul <vinod.koul@intel.com>2015-10-01 07:11:48 +0530
committerVinod Koul <vinod.koul@intel.com>2015-10-01 07:13:45 +0530
commit1a492ac2b87b05c8a175478e79d3c74511c74921 (patch)
treeecefdc8b6a523adf1dfc3ef18d49cd5507f8e1f5 /drivers/dma/zx296702_dma.c
parentaff1e0cee36ab679552846a18d15dcb6d2e3fc4c (diff)
dmaengine: zxdma: fix memset call
Fix the call to memset in this driver [linux-4.2-next-20150911/drivers/dma/zx296702_dma.c:444]: (warning) memset() called to fill 0 bytes of 'ds'. Reported-by: David Binderman <dcb314@hotmail.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
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 39915a6b7986..5c824f562f2b 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;
}