drm/nouveau: add locking around instobj list operations
authorMarcin Slusarz <marcin.slusarz@gmail.com>
Sun, 2 Dec 2012 11:56:22 +0000 (12:56 +0100)
committerBen Skeggs <bskeggs@redhat.com>
Sun, 13 Jan 2013 08:07:40 +0000 (18:07 +1000)
commit4c4101d29fb6c63f78791d02c437702b11e1d4f0
treea11c0c4cd657face804594e5335b965cc7b23755
parent1a1841d300a1b6cac35b0761755364d6d3e10b2e
drm/nouveau: add locking around instobj list operations

Fixes memory corruptions, oopses, etc. when multiple gpuobjs are
simultaneously created or destroyed.

Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/nouveau/core/subdev/instmem/base.c