summaryrefslogtreecommitdiff
path: root/include/drm
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2017-11-08 12:53:11 +0200
committerLeonard Crestez <leonard.crestez@nxp.com>2018-08-24 12:41:33 +0300
commitd8a8d68e2822bede234c20d295007d82c08dc9b7 (patch)
treed0387d31a34dff31f408aa7622cbda5ed950c05f /include/drm
parent3aaebf5de39b1b4435656551a047fecbdf8d4411 (diff)
drm: Check mode object lease status in all master ioctl paths [v4]
Attempts to modify un-leased objects are rejected with an error. Information returned about unleased objects is modified to make them appear unusable and/or disconnected. Changes for v2 as suggested by Daniel Vetter <daniel.vetter@ffwll.ch>: * With the change in the __drm_mode_object_find API to pass the file_priv along, we can now centralize most of the lease-based access checks in that function. * A few places skip that API and require in-line checks. Changes for v3 provided by Dave Airlie <airlied@redhat.com> * remove support for leasing encoders. * add support for leasing planes. Changes for v4 * Only call drm_lease_held if DRIVER_MODESET. Signed-off-by: Keith Packard <keithp@keithp.com> Signed-off-by: Dave Airlie <airlied@redhat.com> Signed-off-by: Marius Vlad <marius-cristian.vlad@nxp.com>
Diffstat (limited to 'include/drm')
-rw-r--r--include/drm/drm_lease.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/include/drm/drm_lease.h b/include/drm/drm_lease.h
index 890018976a3c..6149e56ddbf3 100644
--- a/include/drm/drm_lease.h
+++ b/include/drm/drm_lease.h
@@ -31,6 +31,4 @@ void drm_lease_revoke(struct drm_master *master);
uint32_t drm_lease_filter_crtcs(struct drm_file *file_priv, uint32_t crtcs);
-uint32_t drm_lease_filter_encoders(struct drm_file *file_priv, uint32_t encoders);
-
#endif /* _DRM_LEASE_H_ */