]> 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)
commitc59b0d301f630debd9a84878e486eadcd73c4d56
treed09283dd7a99a2afa40398ebadcd29b8cdd505dd
parent997d93e664f51a2a6082f4bfb205cd81def0c8e3
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