From: Thomas Hellstrom Date: Tue, 2 Nov 2010 13:21:47 +0000 (+0000) Subject: drm/ttm: Make sure a sync object doesn't disappear while we use it X-Git-Tag: v2.6.37-rc2~33^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aa123268c2623c62e33248dafc0572f091689e86;p=pandora-kernel.git drm/ttm: Make sure a sync object doesn't disappear while we use it 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 Signed-off-by: Dave Airlie --- Reading git-diff-tree failed