Received: by 10.223.176.5 with SMTP id f5csp2570691wra; Thu, 1 Feb 2018 02:33:55 -0800 (PST) X-Google-Smtp-Source: AH8x224m22YprGFxmTixAXfP7g+NpdYsAHcLLtttnjCGA4ibvaAe1FZ84wYzq/mtMVdCvgKUX6lK X-Received: by 2002:a17:902:76cc:: with SMTP id j12-v6mr29099697plt.120.1517481235882; Thu, 01 Feb 2018 02:33:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517481235; cv=none; d=google.com; s=arc-20160816; b=mV4pmwaYNzDM4WlXOH7iCvAC/3N9NpfVGHx0yUK82BnNd3QFNAIdG8IDdMuBAVF1+o 9mRSmnnH8YgghO5HCq5XAZb+hn2o140J5Oy8bI75658gIzrTVkic27guQ6Nc3ci1tBEq Tox/UHdHvxRIZywApe7gggtWOGItCmd39oZqo3ZVYN8iMXm74vHg3oTtMN+QVfyWNWzn FZi1b2p54KWHHwx2Twq/0J9qoZgaBCaoWFNdimC/iobbY/v3dvIXQKhT1i+CPd3TChUN q452DwR4MeQ7J1Kw7XsYvt6iXIxjyj+LyJ+Ltd8RvwkoJybrSomAdk5vfnRhik4LzKBy VYNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=a0DiWwP2Hww5pbSl8dgmWCsZPh4A4o+WRXH6Bt1pn3A=; b=e58E12WBkCx1zRFE3DhebgFUGxMYwdY918q6nony60bAKfXjdaxAbkVdOxZxoGtYkw II/xQHh4lGt+eNezTYJNXf0O5dVsJC0RJpVXlAV298e5zlztBoS/UXn5Br3k1wijFTYb ZjkEZQnnmxe4F0FPLnL6MNaj1htskRHqokm1ePAeyVAjR1GhgYhGYDIVpGIzyk4DG6vh kgBB5ztJxhCfd+YNPIASQnsx+SsnhL42eLfiK/8I68j8qizpvQtOYfOl3u+HMwmXRs8g AZ3AdjThW+xTNauPysKtjDWmhyzCMN7MV3Lsf+Numx0utIyLcfEbbs0PI7XhPdJmwIkK tRkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=KYucBHHU; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v18si1477957pge.254.2018.02.01.02.33.40; Thu, 01 Feb 2018 02:33:55 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=KYucBHHU; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752114AbeBAKcD (ORCPT + 99 others); Thu, 1 Feb 2018 05:32:03 -0500 Received: from aserp2130.oracle.com ([141.146.126.79]:57418 "EHLO aserp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751749AbeBAKb7 (ORCPT ); Thu, 1 Feb 2018 05:31:59 -0500 Received: from pps.filterd (aserp2130.oracle.com [127.0.0.1]) by aserp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w11AMGvY167205; Thu, 1 Feb 2018 10:25:12 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=corp-2017-10-26; bh=a0DiWwP2Hww5pbSl8dgmWCsZPh4A4o+WRXH6Bt1pn3A=; b=KYucBHHUjn3awlsRmC2FK/Ji0rT0/d0no84L7lbk66XcdjGwufa2TJ4ppgOHjWN+beik 5V4T5z36zxTvskGlE7gHCu7psyddaF1h1yEw+C5q9g3l35zOLokQ3GFBezKEn347tMon nHAfhWBQ9SgAlkJZNRdRarB4KozGjv0CkDz9P236BZT+Cc8MDtTw+wScOLOrV+EkGNjk FEVTetwgfy9aDXgq5WfLIk6w9LI8O8JRo65FFhxiEbLIECcPUqdoXMmPkcP31sz/OUoW ydgtQ8li26ULu15qfRXsOH5ZnIO2GqGcaTgLBw2zARVKv0S2oaZ1syeMzRftPDYqD980 Lg== Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by aserp2130.oracle.com with ESMTP id 2fuqkfst70-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 01 Feb 2018 10:25:11 +0000 Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w11APAAS023068 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 1 Feb 2018 10:25:10 GMT Received: from abhmp0013.oracle.com (abhmp0013.oracle.com [141.146.116.19]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w11APAZe005986; Thu, 1 Feb 2018 10:25:10 GMT Received: from mwanda (/41.202.241.60) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 01 Feb 2018 02:25:09 -0800 Date: Thu, 1 Feb 2018 13:25:01 +0300 From: Dan Carpenter To: Julia Lawall Cc: Masahiro Yamada , kernel-janitors@vger.kernel.org, Gilles Muller , Nicolas Palix , Michal Marek , cocci@systeme.lip6.fr, linux-kernel@vger.kernel.org Subject: Re: [PATCH] coccinelle: reduce false positives Message-ID: <20180201102501.kc5pfxojn7fhxat4@mwanda> References: <1517478532-5444-1-git-send-email-Julia.Lawall@lip6.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1517478532-5444-1-git-send-email-Julia.Lawall@lip6.fr> User-Agent: NeoMutt/20170609 (1.8.3) X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8791 signatures=668659 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=2 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=694 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1802010136 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 01, 2018 at 10:48:52AM +0100, Julia Lawall wrote: > Some files use both a non-devm allocation and a devm_allocation. Don't > complain about a free when the same function contains a non-devm > allocation. > > Signed-off-by: Julia Lawall > That's surprising... Do you have an example false positive? regards, dan carpenter