diff options
author | Martin Leung <Martin.Leung@amd.com> | 2023-03-14 16:27:20 +0300 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2023-03-31 18:18:54 +0300 |
commit | f5442b35e69e42015ef3082008c0d85cdcc0ca05 (patch) | |
tree | d601326e68e5310b02d9949fd24395bf8ba8eb05 /tools/perf/scripts/python | |
parent | bf224e00a9f54e2bf14b4d720a09c3d2f4aa4aa8 (diff) | |
download | linux-f5442b35e69e42015ef3082008c0d85cdcc0ca05.tar.xz |
drm/amd/display: fix double memory allocation
[Why & How]
when trying to fix a nullptr dereference on VMs,
accidentally doubly allocated memory for the non VM
case. removed the extra link_srv creation since
dc_construct_ctx is called in both VM and non VM cases
Also added a proper fail check for if kzalloc fails
Cc: stable@vger.kernel.org
Cc: Mario Limonciello <mario.limonciello@amd.com>
Reviewed-by: Leo Ma <Hanghong.Ma@amd.com>
Acked-by: Qingqing Zhuo <qingqing.zhuo@amd.com>
Signed-off-by: Martin Leung <Martin.Leung@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions