commit | f175b745b50c5c5356e8b3b409b7f38aa44de6bb | [log] [tgz] |
---|---|---|
author | Francisco Jerez <currojerez@riseup.net> | Mon Oct 18 03:54:33 2010 +0200 |
committer | Ben Skeggs <bskeggs@redhat.com> | Fri Dec 03 15:06:36 2010 +1000 |
tree | ed2dcd8f88f3be4df90fd1333f3735218e1be21a | |
parent | 3945e47543863385b54d94c94b023ee7ca9df972 [diff] |
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 <currojerez@riseup.net> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>