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

Free "dp" before returning.

Fixes: be318d01a9 ("drm: xlnx: dp: Reset DisplayPort IP")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Link: https://patchwork.freedesktop.org/patch/msgid/86def134-9537-4939-912e-3a424e3a75b6@moroto.mountain
This commit is contained in:
Dan Carpenter 2024-04-04 10:32:07 +03:00 committed by Tomi Valkeinen
parent a18815ac7b
commit 6b2da5b996

View File

@ -1716,7 +1716,7 @@ int zynqmp_dp_probe(struct zynqmp_dpsub *dpsub)
ret = zynqmp_dp_reset(dp, true);
if (ret < 0)
return ret;
goto err_free;
ret = zynqmp_dp_reset(dp, false);
if (ret < 0)