Re: [PATCH 1/6] drm/vmwgfx: Stop checking minor type directly

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Jun 24, 2016 at 03:46:25PM -0700, Sinclair Yeh wrote:
> Thanks!
> 
> Reviewed-by: Sinclair Yeh <syeh@xxxxxxxxxx>

Applied to drm-misc.
-Daniel

> 
> 
> On Fri, Jun 24, 2016 at 06:15:15PM +0100, Frank Binns wrote:
> > Use the appropriate drm minor type helper instead.
> > 
> > Cc: Sinclair Yeh <syeh@xxxxxxxxxx>
> > Cc: Thomas Hellstrom <thellstrom@xxxxxxxxxx>
> > Signed-off-by: Frank Binns <frank.binns@xxxxxxxxxx>
> > ---
> >  drivers/gpu/drm/vmwgfx/vmwgfx_drv.c | 3 +--
> >  1 file changed, 1 insertion(+), 2 deletions(-)
> > 
> > diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
> > index 6064664..5d5c951 100644
> > --- a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
> > +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
> > @@ -1041,8 +1041,7 @@ static struct vmw_master *vmw_master_check(struct drm_device *dev,
> >  	struct vmw_fpriv *vmw_fp = vmw_fpriv(file_priv);
> >  	struct vmw_master *vmaster;
> >  
> > -	if (file_priv->minor->type != DRM_MINOR_LEGACY ||
> > -	    !(flags & DRM_AUTH))
> > +	if (!drm_is_primary_client(file_priv) || !(flags & DRM_AUTH))
> >  		return NULL;
> >  
> >  	ret = mutex_lock_interruptible(&dev->master_mutex);
> > -- 
> > 2.7.4
> > 
> _______________________________________________
> dri-devel mailing list
> dri-devel@xxxxxxxxxxxxxxxxxxxxx
> https://lists.freedesktop.org/mailman/listinfo/dri-devel

-- 
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/dri-devel




[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux