From: Thomas Hellstrom Date: Wed, 2 Dec 2009 17:33:46 +0000 (+0100) Subject: drm/ttm: Fix potential ttm_mem_evict_first races. X-Git-Tag: v2.6.33-rc1~62^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9c51ba1db37cab780f38b2210913959f22d7b830;p=pandora-kernel.git drm/ttm: Fix potential ttm_mem_evict_first races. 1) The function was previously called with a potentially empty LRU list which would have lead to an OOPS or servere corruption. 2) In rare cases, after reservation has succeeded, another process may already have evicted it or even pinned it. We must revalidate the buffer status after releasing the lru lock. Signed-off-by: Thomas Hellstrom Signed-off-by: Dave Airlie --- Reading git-diff-tree failed