drm/ttm: Fix a memory leak
Free the memory on failure. Also no need to re-alloc memory on retry. Signed-off-by: Nxinhui pan <xinhui.pan@amd.com> Link: https://patchwork.freedesktop.org/patch/msgid/20210219042547.44855-1-xinhui.pan@amd.comReviewed-by: NChristian König <christian.koenig@amd.com> CC: stable@vger.kernel.org # 5.11 Signed-off-by: NChristian König <christian.koenig@amd.com> Signed-off-by: NMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Showing
想要评论请 注册 或 登录