mirror of
https://github.com/torvalds/linux.git
synced 2024-11-26 14:12:06 +00:00
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:
parent
a18815ac7b
commit
6b2da5b996
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user