Skip to content

Commit 6b2da5b

Browse files
Dan Carpentertomba
authored andcommitted
drm: xlnx: db: fix a memory leak in probe
Free "dp" before returning. Fixes: be318d0 ("drm: xlnx: dp: Reset DisplayPort IP") Signed-off-by: Dan Carpenter <[email protected]> Signed-off-by: Tomi Valkeinen <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent a18815a commit 6b2da5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/xlnx/zynqmp_dp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1716,7 +1716,7 @@ int zynqmp_dp_probe(struct zynqmp_dpsub *dpsub)
17161716

17171717
ret = zynqmp_dp_reset(dp, true);
17181718
if (ret < 0)
1719-
return ret;
1719+
goto err_free;
17201720

17211721
ret = zynqmp_dp_reset(dp, false);
17221722
if (ret < 0)

0 commit comments

Comments
 (0)