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)
commit290e55056ec3d25c72088628245d8cae037b30db
tree5496a6ab798602063e5d27d5d31caa102f44ded2
parent6a8a2d702b33c6ed5c789f21b4e89fdf221f01ca
drm/ttm: handle OOM in ttm_tt_swapout

- 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>
drivers/gpu/drm/ttm/ttm_tt.c