mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-27 03:49:57 -04:00
drm: Pass struct drm_file * to __drm_mode_object_find [v2]
This will allow __drm_mode_object_file to be extended to perform access control checks based on the file in use. v2: Also fix up vboxvideo driver in staging [airlied: merging early as this is an API change] Suggested-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Keith Packard <keithp@keithp.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
committed by
Dave Airlie
parent
bb7a9c8d71
commit
418da17214
@@ -286,7 +286,7 @@ int vmw_present_ioctl(struct drm_device *dev, void *data,
|
||||
|
||||
drm_modeset_lock_all(dev);
|
||||
|
||||
fb = drm_framebuffer_lookup(dev, arg->fb_id);
|
||||
fb = drm_framebuffer_lookup(dev, file_priv, arg->fb_id);
|
||||
if (!fb) {
|
||||
DRM_ERROR("Invalid framebuffer id.\n");
|
||||
ret = -ENOENT;
|
||||
@@ -369,7 +369,7 @@ int vmw_present_readback_ioctl(struct drm_device *dev, void *data,
|
||||
|
||||
drm_modeset_lock_all(dev);
|
||||
|
||||
fb = drm_framebuffer_lookup(dev, arg->fb_id);
|
||||
fb = drm_framebuffer_lookup(dev, file_priv, arg->fb_id);
|
||||
if (!fb) {
|
||||
DRM_ERROR("Invalid framebuffer id.\n");
|
||||
ret = -ENOENT;
|
||||
|
||||
Reference in New Issue
Block a user