[Intel-gfx] [PATCH 1/2] drm/i915: use dev_priv directly in i915_driver_unload

Daniel Vetter daniel at ffwll.ch
Wed May 14 13:12:52 CEST 2014


On Wed, May 14, 2014 at 11:04:03AM +0100, Damien Lespiau wrote:
> On Tue, May 13, 2014 at 10:21:59PM +0200, Daniel Vetter wrote:
> > Noticed while playing with coccinelle.
> > 
> > Signed-off-by: Daniel Vetter <daniel.vetter at ffwll.ch>
> 
> Reviewed-by: Damien Lespiau <damien.lespiau at intel.com>

Queued for -next, thanks for the review.
-Daniel
> 
> > ---
> >  drivers/gpu/drm/i915/i915_dma.c | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> > 
> > diff --git a/drivers/gpu/drm/i915/i915_dma.c b/drivers/gpu/drm/i915/i915_dma.c
> > index d02c8de4bd6c..46f1decab76f 100644
> > --- a/drivers/gpu/drm/i915/i915_dma.c
> > +++ b/drivers/gpu/drm/i915/i915_dma.c
> > @@ -1867,7 +1867,7 @@ int i915_driver_unload(struct drm_device *dev)
> >  		kmem_cache_destroy(dev_priv->slab);
> >  
> >  	pci_dev_put(dev_priv->bridge_dev);
> > -	kfree(dev->dev_private);
> > +	kfree(dev_priv);
> >  
> >  	return 0;
> >  }
> > -- 
> > 1.9.2
> > 
> > _______________________________________________
> > Intel-gfx mailing list
> > Intel-gfx at lists.freedesktop.org
> > http://lists.freedesktop.org/mailman/listinfo/intel-gfx
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/intel-gfx

-- 
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch



More information about the Intel-gfx mailing list