diff options
author | Daniel Vetter <[email protected]> | 2016-06-21 14:20:38 +0200 |
---|---|---|
committer | Daniel Vetter <[email protected]> | 2016-06-21 21:56:28 +0200 |
commit | d6ed682eba54915ea56315bc2e5a33fca5922997 (patch) | |
tree | 64376df1411c985aa17c04819a9e3ebe267b9e15 /net/unix/sysctl_net_unix.c | |
parent | a325725633c26aa66ab940f762a6b0778edf76c0 (diff) |
drm: Refactor drop/set master code a bit
File open/set_maseter ioctl and file close/drop_master ioctl share the
same master handling code. Extract it.
Note that vmwgfx's master_set callback needs to know whether the
master is a new one or has been used already, so thread this through.
On the close/drop side a similar parameter existed, but wasnt used.
Drop it to simplify the flow.
v2: Try to make it not leak so much (Emil).
v3: Send out the right version ...
Cc: Emil Velikov <[email protected]>
Cc: Chris Wilson <[email protected]>
Cc: Thomas Hellstrom <[email protected]>
Reviewed-by: Chris Wilson <[email protected]>
Reviewed-by: Emil Velikov <[email protected]>
Signed-off-by: Daniel Vetter <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions