Commit b295b197 authored by Lang Yu's avatar Lang Yu Committed by Greg Kroah-Hartman
Browse files

drm/amdgpu: refine error handling in amdgpu_ttm_tt_pin_userptr



[ Upstream commit 46186667 ]

Free sg table when dma_map_sgtable() failed to avoid memory leak.

Signed-off-by: default avatarLang Yu <lang.yu@amd.com>
Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 8ffd84c6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment