drm: Return EINVAL on duplicate objects in execbuffer object list
authorKristian Høgsberg <krh@redhat.com>
Tue, 3 Mar 2009 19:45:57 +0000 (14:45 -0500)
committerEric Anholt <eric@anholt.net>
Tue, 10 Mar 2009 20:11:11 +0000 (13:11 -0700)
If userspace passes an object list with the same object appearing more
than once, we end up hitting the BUG_ON() in
i915_gem_object_set_to_gpu_domain() as it gets called a second time
for the same object.

Signed-off-by: Kristian Høgsberg <krh@redhat.com>
Signed-off-by: Eric Anholt <eric@anholt.net>

No differences found