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:
Родитель
bb0a80e394
Коммит
f7fdaca910
|
@ -699,7 +699,7 @@ int imx_dma_request(int channel, const char *name)
|
||||||
local_irq_restore(flags);
|
local_irq_restore(flags);
|
||||||
return -EBUSY;
|
return -EBUSY;
|
||||||
}
|
}
|
||||||
memset(imxdma, 0, sizeof(imxdma));
|
memset(imxdma, 0, sizeof(*imxdma));
|
||||||
imxdma->name = name;
|
imxdma->name = name;
|
||||||
local_irq_restore(flags); /* request_irq() can block */
|
local_irq_restore(flags); /* request_irq() can block */
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче