drm/ttm: handle OOM in ttm_tt_swapout
authorMaarten Maathuis <madman2003@gmail.com>
Sat, 20 Feb 2010 02:22:21 +0000 (03:22 +0100)
committerDave Airlie <airlied@redhat.com>
Thu, 25 Feb 2010 03:33:04 +0000 (13:33 +1000)
- Without this change I get a general protection fault.
- Also use PTR_ERR where applicable.

Signed-off-by: Maarten Maathuis <madman2003@gmail.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Acked-by: Thomas Hellstrom <thellstrom@vmware.com>
Cc: stable@kernel.org
Signed-off-by: Dave Airlie <airlied@redhat.com>

No differences found