Re: [PATCH] drm/ttm: handle OOM in ttm_tt_swapout

2010-02-23 Thread Maarten Maathuis
On Tue, Feb 23, 2010 at 6:59 AM, Dave Airlie airl...@gmail.com wrote: On Sat, Feb 20, 2010 at 12:22 PM, Maarten Maathuis madman2...@gmail.com wrote: - Without this change I get a general protection fault. - Also use PTR_ERR where applicable. I just want to make sure I understand, but really

Re: [PATCH] drm/ttm: handle OOM in ttm_tt_swapout

2010-02-23 Thread Thomas Hellstrom
Maarten Maathuis wrote: On Tue, Feb 23, 2010 at 6:59 AM, Dave Airlie airl...@gmail.com wrote: On Sat, Feb 20, 2010 at 12:22 PM, Maarten Maathuis madman2...@gmail.com wrote: - Without this change I get a general protection fault. - Also use PTR_ERR where applicable. I just

Re: [PATCH] drm/ttm: handle OOM in ttm_tt_swapout

2010-02-22 Thread Dave Airlie
On Sat, Feb 20, 2010 at 12:22 PM, Maarten Maathuis madman2...@gmail.com wrote: - Without this change I get a general protection fault. - Also use PTR_ERR where applicable. I just want to make sure I understand, but really the only bit of this patch that matters is: @@ -556,9 +559,10 @@ int

[PATCH] drm/ttm: handle OOM in ttm_tt_swapout

2010-02-19 Thread Maarten Maathuis
- Without this change I get a general protection fault. - Also use PTR_ERR where applicable. Signed-off-by: Maarten Maathuis madman2...@gmail.com --- drivers/gpu/drm/ttm/ttm_tt.c | 18 +++--- 1 files changed, 11 insertions(+), 7 deletions(-) diff --git