ttm: Don't return the bo reserved on error path
authorThomas Hellstrom <thellstrom@vmware.com>
Mon, 21 Nov 2011 12:05:02 +0000 (13:05 +0100)
committerDave Airlie <airlied@redhat.com>
Tue, 22 Nov 2011 20:06:21 +0000 (20:06 +0000)
commit26cc40a83384178bfaefbcfb4786591498f3e190
tree6b82f08110f349b458c001d73f50e6808e96026c
parentcdaeb578aca9e017deb0f55f1af8a94a4d63efb3
ttm: Don't return the bo reserved on error path

An unlikely race could case a bo to be returned reserved on an error path.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Jerome Glisse <jglisse@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/ttm/ttm_bo.c