drm/imx: imx-ldb: fix channel->edid memleak
If edid was allocated during bind, it must be freed again during unbind. Signed-off-by: Peter Seiderer <ps.report@gmx.net> Acked-by: Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
This commit is contained in:
committed by
Philipp Zabel
parent
dcbc9eb191
commit
f4876ffea6
@ -574,6 +574,8 @@ static void imx_ldb_unbind(struct device *dev, struct device *master,
|
||||
|
||||
channel->connector.funcs->destroy(&channel->connector);
|
||||
channel->encoder.funcs->destroy(&channel->encoder);
|
||||
|
||||
kfree(channel->edid);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user