]> git.baikalelectronics.ru Git - kernel.git/commit
drm: Fix an unwanted master inheritance v2
authorThomas Hellstrom <thellstrom@vmware.com>
Wed, 2 Dec 2015 17:24:46 +0000 (09:24 -0800)
committerDave Airlie <airlied@redhat.com>
Fri, 4 Dec 2015 02:28:14 +0000 (12:28 +1000)
commit534f631af9cff51113375337b4b194fb7322994d
tree056678eb2ff49c0d8e489f34995d7089e5b134bb
parentb532d010fbf28597aeec324d1b62067430315ebd
drm: Fix an unwanted master inheritance v2

A client calling drmSetMaster() using a file descriptor that was opened
when another client was master would inherit the latter client's master
object and all its authenticated clients.

This is unwanted behaviour, and when this happens, instead allocate a
brand new master object for the client calling drmSetMaster().

Fixes a BUG() throw in vmw_master_set().

Cc: <stable@vger.kernel.org>
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_drv.c
drivers/gpu/drm/drm_fops.c
include/drm/drmP.h