drm/ttm: Fix ttm_bo_move_memcpy
authorThomas Hellstrom <thellstrom@vmware.com>
Wed, 30 Oct 2013 10:29:50 +0000 (03:29 -0700)
committerThomas Hellstrom <thellstrom@vmware.com>
Wed, 6 Nov 2013 12:36:12 +0000 (04:36 -0800)
commitda95c788ef0c645378ffccb7060a0df1a33aee38
treed09283dd7a99a2afa40398ebadcd29b8cdd505dd
parent9a0599ddeae012a771bba5e23393fc52d8a59d89
drm/ttm: Fix ttm_bo_move_memcpy

All error paths will want to keep the mm node, so handle this at the
function exit. This fixes an ioremap failure error path.
Also add some comments to make the function a bit easier to understand.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/ttm/ttm_bo_util.c