diff --git a/sys/dev/drm/drm_drv.c b/sys/dev/drm/drm_drv.c index 63be19bfdfdb..14e543d73c72 100644 --- a/sys/dev/drm/drm_drv.c +++ b/sys/dev/drm/drm_drv.c @@ -658,9 +658,7 @@ int drm_ioctl(struct cdev *kdev, u_long cmd, caddr_t data, int flags, int is_driver_ioctl = 0; struct drm_file *file_priv; - DRM_LOCK(); retcode = devfs_get_cdevpriv((void **)&file_priv); - DRM_UNLOCK(); if (retcode != 0) { DRM_ERROR("can't find authenticator\n"); return EINVAL;