[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.DEB.2.20.1905151217380.3231@hadrien>
Date: Wed, 15 May 2019 12:19:13 +0200 (CEST)
From: Julia Lawall <julia.lawall@...6.fr>
To: Markus Elfring <Markus.Elfring@....de>
cc: Coccinelle <cocci@...teme.lip6.fr>,
LKML <linux-kernel@...r.kernel.org>,
Cheng Shengyu <cheng.shengyu@....com.cn>,
Gilles Muller <Gilles.Muller@...6.fr>,
Ma Jiang <ma.jiang@....com.cn>,
Masahiro Yamada <yamada.masahiro@...ionext.com>,
Michal Marek <michal.lkml@...kovi.net>,
Nicolas Palix <nicolas.palix@...g.fr>,
Wen Yang <wen.yang99@....com.cn>,
Yi Wang <wang.yi59@....com.cn>
Subject: Re: [3/3] Coccinelle: pci_free_consistent: Extend when constraints
for two SmPL ellipses
On Wed, 15 May 2019, Markus Elfring wrote:
> >>> On the other hand, I do care about causing false negatives.
> >>
> >> Do you find the missing warning after the addition of such an exclusion
> >> specification interesting?
> >
> > I already suggested how to improve the code.
>
> I find that the idea “e2->fld” needs further clarification.
> Such a SmPL specification will be resolved also to an expression,
> won't it?
Saving in a local variable doesn't impact the need to free the object. A
field is the most obvious case where the object may not need freeing. But
there are many expressions that e2->fld will not match.
julia
Powered by blists - more mailing lists