]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Fix memleak in amdgpu_dm_mode_config_init
authorDinghao Liu <dinghao.liu@zju.edu.cn>
Wed, 26 Aug 2020 13:24:58 +0000 (21:24 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 26 Aug 2020 19:45:52 +0000 (15:45 -0400)
commit93e2dab073f2572e873d15ad147dcb4cf8c7344f
tree8536593489b81a83bca571c25d57e74c2620a02d
parente112fb47a4dde3dbb6d176a4f8679a80c648c99c
drm/amd/display: Fix memleak in amdgpu_dm_mode_config_init

When amdgpu_display_modeset_create_props() fails, state and
state->context should be freed to prevent memleak. It's the
same when amdgpu_dm_audio_init() fails.

Signed-off-by: Dinghao Liu <dinghao.liu@zju.edu.cn>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c