Commit 532a37f0 authored by Flavio Ceolin's avatar Flavio Ceolin Committed by Henrik Brix Andersen
Browse files

ipm: imx: Initialize variable before using it

Since the driver is passing the whole buffer, let's zero it to avoid
pass garbage in case of size != buffer's size.

Signed-off-by: default avatarFlavio Ceolin <flavio.ceolin@intel.com>
(cherry picked from commit 98857c26)
parent bd7f05eb
Loading
Loading
Loading
Loading
+1 −1
Changes for drivers/ipm/ipm_imx.c: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -164,7 +164,7 @@ static int imx_mu_ipm_send(const struct device *dev, int wait, uint32_t id,
{
	const struct imx_mu_config *config = dev->config;
	MU_Type *base = MU(config);
	uint32_t data32[IMX_IPM_DATA_REGS];
	uint32_t data32[IMX_IPM_DATA_REGS] = {0};
#if !IS_ENABLED(CONFIG_IPM_IMX_REV2)
	mu_status_t status;
#endif