summaryrefslogtreecommitdiff
path: root/arch/arm/mach-imx
diff options
context:
space:
mode:
authorIlia Mirkin <imirkin@alum.mit.edu>2011-02-20 17:10:51 -0500
committerSascha Hauer <s.hauer@pengutronix.de>2011-03-10 14:24:53 +0100
commitf7fdaca910e6bc13659ecdffc28c97938b752e01 (patch)
tree3c93511e87c758e81e8a9c9d3945191afdb38785 /arch/arm/mach-imx
parentbb0a80e394b512028ad6cf4c86157d4f9db5aab8 (diff)
arm: imx: Zero entire imxdma structure
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>
Diffstat (limited to 'arch/arm/mach-imx')
-rw-r--r--arch/arm/mach-imx/dma-v1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-imx/dma-v1.c b/arch/arm/mach-imx/dma-v1.c
index e9f1769b49f5..236f1495efad 100644
--- 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 */