]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitea2fdc8eb70e851469ac5bd3020b184fe7b591aa
tree33ad2021e7b72e7b6a3a64a57831a93f6198eb09
parent9e9f2dfe3180ea1d8f2e378601ce4219e9d70738
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: 6b7f34d46915 ("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