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:08:11 +0000 (12:08 +0900)
commit598b53ebd0836be3b0d9ffdb100ca83baae506d7
treeca416e7dd68637b69ba698c50fa740469d1a6fd7
parentc082ab303b4d639e464d9b439b98f983cd6d9078
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