From: Francisco Jerez Date: Mon, 18 Oct 2010 01:54:33 +0000 (+0200) Subject: drm/nouveau: Fix race condition in channel refcount handling. X-Git-Tag: v2.6.38-rc1~419^2~37^2~77 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f175b745b50c5c5356e8b3b409b7f38aa44de6bb;p=pandora-kernel.git drm/nouveau: Fix race condition in channel refcount handling. nouveau_channel_put() can be executed after the 'refcount == 0' check in nouveau_channel_get() and before the channel reference count is incremented. In that case CPU0 will take the context down while CPU1 thinks it owns the channel and 'refcount == 1'. Signed-off-by: Francisco Jerez Signed-off-by: Ben Skeggs --- Reading git-diff-tree failed