summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorThomas Hellstrom <thellstrom@vmware.com>2014-02-25 19:57:44 +0100
committerSimon Horman <horms+renesas@verge.net.au>2014-12-11 10:24:44 +0900
commitbe0e079c2abfc76e4a6da598ecccfbc6ed08eeeb (patch)
tree7f57fbb6f74090c4c49139f4f96cde7fdf45f01a /kernel
parent517f01675945493e3e05b286f2016843d2a1fc18 (diff)
downloadrenesas_kernel-be0e079c2abfc76e4a6da598ecccfbc6ed08eeeb.tar.gz
renesas_kernel-be0e079c2abfc76e4a6da598ecccfbc6ed08eeeb.tar.bz2
renesas_kernel-be0e079c2abfc76e4a6da598ecccfbc6ed08eeeb.zip
drm: Protect the master management with a drm_device::master_mutex v3
The master management was previously protected by the drm_device::struct_mutex. In order to avoid locking order violations in a reworked dropped master security check in the vmwgfx driver, break it out into a separate master_mutex. Locking order is master_mutex -> struct_mutex. Also remove drm_master::blocked since it's not used. v2: Add an inline comment about what drm_device::master_mutex is protecting. v3: Remove unneeded struct_mutex locks. Fix error returns in drm_setmaster_ioctl(). Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: David Herrmann <dh.herrmann@gmail.com> Acked-by: Daniel Vetter <daniel@ffwll.ch> (cherry picked from commit c996fd0b956450563454e7ccc97a82ca31f9d043) Signed-off-by: Simon Horman <horms+renesas@verge.net.au> Conflicts: drivers/gpu/drm/drm_stub.c
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions