]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit93dcc2856a1b32cb1a7f8d76732f8d597b8f6058
treed09283dd7a99a2afa40398ebadcd29b8cdd505dd
parent297b100eb3ec405b5ae9fdfe87f26f59debdae9f
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