Skip to content
Commit 543c364d authored by Lin Yi's avatar Lin Yi Committed by Alex Deucher
Browse files

drm/ttm: fix dma_fence refcount imbalance on error path



the ttm_bo_add_move_fence takes a reference to the struct dma_fence, but
failed to release it on the error path, leading to a memory leak.
add dma_fence_put before return when error occur.

Signed-off-by: default avatarLin Yi <teroincn@163.com>
Reviewed-by: default avatarChristian König <christian.koenig@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 45339336
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