diff options
| author | Roman Li <[email protected]> | 2021-05-10 11:58:54 -0400 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2021-05-27 12:25:28 -0400 |
| commit | 051b7887189416c6a60e393251f481c151a676bd (patch) | |
| tree | ecba4a57ff6363fd9082301f6897952b315f8bb9 /tools/perf/scripts/python | |
| parent | 3beac533b8daa18358dabbe5059c417d192b2a93 (diff) | |
drm/amd/display: Fix potential memory leak in DMUB hw_init
[Why]
On resume we perform DMUB hw_init which allocates memory:
dm_resume->dm_dmub_hw_init->dc_dmub_srv_create->kzalloc
That results in memory leak in suspend/resume scenarios.
[How]
Allocate memory for the DC wrapper to DMUB only if it was not
allocated before.
No need to reallocate it on suspend/resume.
Signed-off-by: Lang Yu <[email protected]>
Signed-off-by: Roman Li <[email protected]>
Reviewed-by: Nicholas Kazlauskas <[email protected]>
Acked-by: Qingqing Zhuo <[email protected]>
Tested-by: Daniel Wheeler <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions