drm/i915: grab dev->struct_mutex around framebuffer_init
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 9 Oct 2013 19:23:51 +0000 (21:23 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 16 Oct 2013 20:04:24 +0000 (22:04 +0200)
commitdd4916c55aa4bacb26c343d0f0faa64e7aaef918
tree8abe744474a06c1044101a37bf023b996507d8bd
parent533df0fecdeda3e116ee8ffc8bfef96216e814bc
drm/i915: grab dev->struct_mutex around framebuffer_init

We look at gem state (like obj->tiling/obj->stride), we better have
the relevant locks.

Right now this doesn't matter much since most of these checks are
a curtesy to safe buggy userspace, but I'd like to freeze the tiling
once we have framebuffer objects attached. And then locking matters.

Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-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