drm/ttm: Make sure a sync object doesn't disappear while we use it
authorThomas Hellstrom <thellstrom@vmware.com>
Tue, 2 Nov 2010 13:21:47 +0000 (13:21 +0000)
committerDave Airlie <airlied@redhat.com>
Tue, 9 Nov 2010 03:38:32 +0000 (13:38 +1000)
The sync object may disappear as soon as we release the bo::lock, so
take a reference on it while we use it.
One option would be to call sync_object_flush() before releasing the bo::lock,
but that would put an atomic requirement on that function.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>

No differences found