[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.DEB.2.21.1902160939540.3212@hadrien>
Date: Sat, 16 Feb 2019 09:41:45 +0100 (CET)
From: Julia Lawall <julia.lawall@...6.fr>
To: wen.yang99@....com.cn
cc: Markus.Elfring@....de, Gilles Muller <Gilles.Muller@...6.fr>,
nicolas.palix@...g.fr, michal.lkml@...kovi.net,
wang.yi59@....com.cn, yamada.masahiro@...ionext.com,
yellowriver2010@...mail.com, cheng.shengyu@....com.cn,
cocci@...teme.lip6.fr, linux-kernel@...r.kernel.org,
kernel-janitors@...r.kernel.org
Subject: Re: [v5] coccinelle: semantic code search for missingput_device()
Actually, upon reflection, I don't like the if (...) solution. if (id !=
NULL) would be better. This will also check for if (id). If having such
an explicit test results in false positives, the semantic patch can be
revised. But it is better than if (...), which allow anything at all, and
could miss cases where the free should happen, but does not.
julia
Powered by blists - more mailing lists