drm/nouveau: fix regression causing ttm to not be able to evict vram
authorBen Skeggs <bskeggs@redhat.com>
Mon, 7 Mar 2011 07:18:03 +0000 (17:18 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 7 Mar 2011 21:03:01 +0000 (07:03 +1000)
TTM assumes an error condition from man->func->get_node() means that
something went horribly wrong, and causes it to bail.

The driver is supposed to return 0, and leave mm_node == NULL to
signal that it couldn't allocate any memory.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>

No differences found