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>
This commit is contained in:
parent
bb0a80e394
commit
f7fdaca910
1 changed files with 1 additions and 1 deletions
|
@ -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 */
|
||||
|
||||
|
|
Loading…
Reference in a new issue