drm/amd/display: Fix possible memleak in dp_trigger_hotplug()
authorYueHaibing <yuehaibing@huawei.com>
Thu, 10 Sep 2020 03:26:36 +0000 (11:26 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 15 Sep 2020 21:52:43 +0000 (17:52 -0400)
commitd75fa679b056375494501ad47ea98fca5d712ff0
tree33ad2021e7b72e7b6a3a64a57831a93f6198eb09
parentd56b83f7c1a42c27fe499be2fb5c75a038459c04
drm/amd/display: Fix possible memleak in dp_trigger_hotplug()

If parse_write_buffer_into_params() fails, we should free
wr_buf before return.

Fixes: 6f77b2ac6280 ("drm/amd/display: Add connector HPD trigger debugfs entry")
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c