Skip to content
Commit 7a8a4b07 authored by xinhui pan's avatar xinhui pan Committed by Maarten Lankhorst
Browse files

drm/ttm: Fix a memory leak



Free the memory on failure.
Also no need to re-alloc memory on retry.

Signed-off-by: default avatarxinhui pan <xinhui.pan@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210219042547.44855-1-xinhui.pan@amd.com


Reviewed-by: default avatarChristian König <christian.koenig@amd.com>
CC: stable@vger.kernel.org # 5.11
Signed-off-by: default avatarChristian König <christian.koenig@amd.com>
Signed-off-by: default avatarMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
parent 583065c7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment