From: Thomas Hellstrom Date: Wed, 2 Dec 2015 17:24:46 +0000 (-0800) Subject: drm: Fix an unwanted master inheritance v2 X-Git-Tag: v3.2.75~32 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c627716e77d4cef0f8b689a72168e033495606ba;p=pandora-kernel.git drm: Fix an unwanted master inheritance v2 commit a0af2e538c80f3e47f1d6ddf120a153ad909e8ad upstream. 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(). Signed-off-by: Thomas Hellstrom Signed-off-by: Dave Airlie [bwh: Backported to 3.2: - s/master_mutex/struct_mutex/ - drm_new_set_master() must drop struct_mutex while calling drm_driver::master_create - Adjust filename, context, indentation] Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed