Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f7fdaca9 authored by Ilia Mirkin's avatar Ilia Mirkin Committed by Sascha Hauer
Browse files

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: default avatarIlia Mirkin <imirkin@alum.mit.edu>
Signed-off-by: default avatarSascha Hauer <s.hauer@pengutronix.de>
parent bb0a80e3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 */