Commit 6b2da5b9 authored by Dan Carpenter's avatar Dan Carpenter Committed by Tomi Valkeinen

drm: xlnx: db: fix a memory leak in probe

Free "dp" before returning.

Fixes: be318d01 ("drm: xlnx: dp: Reset DisplayPort IP")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Link: https://patchwork.freedesktop.org/patch/msgid/86def134-9537-4939-912e-3a424e3a75b6@moroto.mountain
parent a18815ac
...@@ -1716,7 +1716,7 @@ int zynqmp_dp_probe(struct zynqmp_dpsub *dpsub) ...@@ -1716,7 +1716,7 @@ int zynqmp_dp_probe(struct zynqmp_dpsub *dpsub)
ret = zynqmp_dp_reset(dp, true); ret = zynqmp_dp_reset(dp, true);
if (ret < 0) if (ret < 0)
return ret; goto err_free;
ret = zynqmp_dp_reset(dp, false); ret = zynqmp_dp_reset(dp, false);
if (ret < 0) if (ret < 0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment