projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb0a80e
)
arm: imx: Zero entire imxdma structure
author
Ilia Mirkin
<imirkin@alum.mit.edu>
Sun, 20 Feb 2011 22:10:51 +0000
(17:10 -0500)
committer
Sascha Hauer
<s.hauer@pengutronix.de>
Thu, 10 Mar 2011 13:24:53 +0000
(14:24 +0100)
The semantic match that finds the problem:
// <smpl>
@@
type T;
identifier x;
@@
T *x;
...
* memset(x, ..., ... * sizeof(x) * ...);
// </smpl>
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
arch/arm/mach-imx/dma-v1.c
patch
|
blob
|
history
diff --git
a/arch/arm/mach-imx/dma-v1.c
b/arch/arm/mach-imx/dma-v1.c
index
e9f1769
..
236f149
100644
(file)
--- a/
arch/arm/mach-imx/dma-v1.c
+++ b/
arch/arm/mach-imx/dma-v1.c
@@
-699,7
+699,7
@@
int imx_dma_request(int channel, const char *name)
local_irq_restore(flags);
return -EBUSY;
}
- memset(imxdma, 0, sizeof(imxdma));
+ memset(imxdma, 0, sizeof(
*
imxdma));
imxdma->name = name;
local_irq_restore(flags); /* request_irq() can block */