lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Mon, 16 Apr 2018 14:24:19 +0200 (CEST)
From:   Julia Lawall <julia.lawall@...6.fr>
To:     Daniel Vetter <daniel@...ll.ch>
cc:     Joel Stanley <joel@....id.au>, linux-aspeed@...ts.ozlabs.org,
        David Airlie <airlied@...ux.ie>, linux-kernel@...r.kernel.org,
        dri-devel@...ts.freedesktop.org, Andrew Jeffery <andrew@...id.au>,
        kbuild-all@...org, linux-arm-kernel@...ts.infradead.org
Subject: Re: [PATCH] drm: fix drm-get-put.cocci warnings



On Mon, 16 Apr 2018, Daniel Vetter wrote:

> On Thu, Apr 12, 2018 at 07:54:10AM +0200, Julia Lawall wrote:
> > From: Fengguang Wu <fengguang.wu@...el.com>
> >
> >  Use drm_*_get() and drm_*_put() helpers instead of drm_*_reference() and
> >  drm_*_unreference() helpers.
> >
> > Generated by: scripts/coccinelle/api/drm-get-put.cocci
> >
> > Fixes: 6784ac15bc68 ("drm: Add ASPEED GFX driver")
> > Signed-off-by: Fengguang Wu <fengguang.wu@...el.com>
> > Signed-off-by: Julia Lawall <julia.lawall@...6.fr>
> > ---
> >
> > tree:   https://github.com/shenki/linux drm-v1
>
> This isn't an upstream tree (and the aspeed driver isn't in upstream
> afaict), so no need for spamming mailing lists I think.

Perhaps you can contact Fengguang about this?  I just forward to whoever
the automatically generated message says to forward to.  And I don't
always remember to include the information about the tree, which comes to
me in another message, so it can indeed be confusing.

>
> But thanks for doing all this, great motivation to put more of the drm
> refactorings into cocci files.

Most welcome :)

julia

> Cheers, Daniel
> > head:   9680ed7979d5d403c6bde36271a048d62c048180
> > commit: 6784ac15bc6889280522b04b97f1fb1208ee45e7 [23/27] drm: Add ASPEED
> > GFX
> > driver
> >
> >  aspeed_gfx_drv.c |    4 ++--
> >  1 file changed, 2 insertions(+), 2 deletions(-)
> >
> > --- a/drivers/gpu/drm/aspeed/aspeed_gfx_drv.c
> > +++ b/drivers/gpu/drm/aspeed/aspeed_gfx_drv.c
> > @@ -268,7 +268,7 @@ static int aspeed_gfx_probe(struct platf
> >  err_unload:
> >  	aspeed_gfx_unload(drm);
> >  err_free:
> > -	drm_dev_unref(drm);
> > +	drm_dev_put(drm);
> >
> >  	return ret;
> >  }
> > @@ -279,7 +279,7 @@ static int aspeed_gfx_remove(struct plat
> >
> >  	drm_dev_unregister(drm);
> >  	aspeed_gfx_unload(drm);
> > -	drm_dev_unref(drm);
> > +	drm_dev_put(drm);
> >
> >  	return 0;
> >  }
> > _______________________________________________
> > dri-devel mailing list
> > dri-devel@...ts.freedesktop.org
> > https://lists.freedesktop.org/mailman/listinfo/dri-devel
>
> --
> Daniel Vetter
> Software Engineer, Intel Corporation
> http://blog.ffwll.ch
>

Powered by blists - more mailing lists