drm/ttm: Fix ttm_bo_move_memcpy
authorThomas Hellstrom <thellstrom@vmware.com>
Wed, 30 Oct 2013 10:29:50 +0000 (03:29 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Dec 2013 18:57:05 +0000 (10:57 -0800)
commit6c3c00e3f509af95f7ca80492311a3ce485528e2
treee0409ba9edb5d69c0875276d8df0878d28da35d2
parentf692d2d8bebddeb8c8faedfc41e4732f3dc23e5b
drm/ttm: Fix ttm_bo_move_memcpy

commit da95c788ef0c645378ffccb7060a0df1a33aee38 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/ttm/ttm_bo_util.c