projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aff1e0c
)
dmaengine: zxdma: fix memset call
author
Vinod Koul
<vinod.koul@intel.com>
Thu, 1 Oct 2015 01:41:48 +0000
(07:11 +0530)
committer
Vinod Koul
<vinod.koul@intel.com>
Thu, 1 Oct 2015 01:43:45 +0000
(07:13 +0530)
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>
drivers/dma/zx296702_dma.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/dma/zx296702_dma.c
b/drivers/dma/zx296702_dma.c
index 39915a6b7986e2fba00d285370f57f27ed3eeb9a..5c824f562f2b024c5c6f7dba4ac4a52feb262a53 100644
(file)
--- 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;
}