]> git.karo-electronics.de Git - linux-beck.git/commit
drm/i915: Add locking around framebuffer_references--
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 13 Jun 2014 08:10:53 +0000 (11:10 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 13 Jun 2014 15:45:28 +0000 (17:45 +0200)
commit60a5ca015ffd2aacfe5674b5a401cd2a37159e07
tree8dafae791a58ce6884e6b3c3d2c8f385c99beb1c
parent642f9bb558decd546c73dfc7064f2138a3428f23
drm/i915: Add locking around framebuffer_references--

obj->framebuffer_references isn't an atomic_t so the decrement needs to
be protected by some lock. struct_mutex seems like the appropriate lock
here, and we may already take it for the obj unref anyway.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_display.c