diff options
author | Dan Carpenter <dan.carpenter@linaro.org> | 2024-04-04 10:32:07 +0300 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ideasonboard.com> | 2024-04-10 14:13:04 +0300 |
commit | 6b2da5b996959c6e5ef3b2bd867d8b3776f7da94 (patch) | |
tree | c6e7012bff2103eed3eaabd78b5c6eeaa7840048 /drivers | |
parent | a18815ac7bb7d33933f4f96977ff778147ee1be0 (diff) |
drm: xlnx: db: fix a memory leak in probe
Free "dp" before returning.
Fixes: be318d01a903 ("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
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/xlnx/zynqmp_dp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/xlnx/zynqmp_dp.c b/drivers/gpu/drm/xlnx/zynqmp_dp.c index 5a40aa1d4283..8a15d18a65a6 100644 --- a/drivers/gpu/drm/xlnx/zynqmp_dp.c +++ b/drivers/gpu/drm/xlnx/zynqmp_dp.c @@ -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) |