drm/vmwgfx: Don't put resources with invalid id's on lru list
authorThomas Hellstrom <thellstrom@vmware.com>
Wed, 9 Oct 2013 08:42:50 +0000 (01:42 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Nov 2013 03:05:34 +0000 (12:05 +0900)
commit0d6d09974ba93877afa53f5ce5ce89f20b3dfe20
tree19d66a3e9e09f972f921529c5d159d827a71609d
parent7bff7accd427da171501b558457ef8fa81ee2767
drm/vmwgfx: Don't put resources with invalid id's on lru list

commit 26682480c202e7360cbcdc3bc9e962bf749c6b8d upstream.

The evict code may try to swap them out causing a BUG in the destroy
function.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/vmwgfx/vmwgfx_resource.c