Received: by 10.223.176.5 with SMTP id f5csp2615676wra; Thu, 1 Feb 2018 03:20:40 -0800 (PST) X-Google-Smtp-Source: AH8x2268i1gsQW8kzMaI3O9BbENuU0c79yWnufeWLoWwtLk9WdzPesMGcs+JyJKQFvSbw3fjRKSZ X-Received: by 2002:a17:902:722:: with SMTP id 31-v6mr6941022pli.331.1517484040548; Thu, 01 Feb 2018 03:20:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517484040; cv=none; d=google.com; s=arc-20160816; b=Oad/7IEpIA5CAEIqYkZq7uBaBOAzTKCDrdgP07SD3CQZvKI0wAgcjyn0rqCarXdys0 A10v+dUwAIWMvjD0/rSWCQ/j4xr4cDY9Zn5/voyf/UiT5ABHMhprwmcKRrN7DjtNPXGO 4ABRoQnEhNdYI31YjT3hcG7bU/zgS8X4/rTIpps+HkWiEWxq3Cqb0DabqWnxsF8Lh5VR GpqzqoLWdnmxDtZ42JJ1an15RBEIIBWLjTSCJPRrcRcvOYx4XwgavgLoY8q5/IaT9hb+ VELXHsebDqPIPtx6kOV+qi2o0W32//WlgbxhqtGe1UISBdBixdN63o03vWHWkZRCAqQW 3qcw== 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=/w9Day58PGeftj95f1c6XtIcnHLODVoUU8vJx6E19mM=; b=cX8hiG9KKpD4ZsyeV3oLNTAX/JaUj3gObaBWgUiT8RvOF1BtzSSHNv3N3XkXGl4CHQ 2COqaxleMlq8OaAJL2mhualbBSc28N0519UMBYgy8eyFUUSGiJTJGNG90mLql0JYBSBH +jg0J33O6wyobPLaXEGBMuSt7sLPo7meO1Xu9+TUGlbgLr1Aad75w2UpR7Z53VivVTjN uPhsW3xojDRQWQco0NKFoenBQkZ0iw0ZDFW1e2R/VRvz9h7Ej8wjn6y31vzGtxXuzSRf 052WDwd+gNNsP9WEMloLus+QcOgH6abPUidT/hBafRzI+e4nc0ZiECcnoNF08zY/x6V1 S8/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=lOraItXG; 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 r9si3794568pfr.296.2018.02.01.03.20.25; Thu, 01 Feb 2018 03:20:40 -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=lOraItXG; 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 S1752114AbeBALT4 (ORCPT + 99 others); Thu, 1 Feb 2018 06:19:56 -0500 Received: from aserp2130.oracle.com ([141.146.126.79]:53710 "EHLO aserp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751761AbeBALTx (ORCPT ); Thu, 1 Feb 2018 06:19:53 -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 w11BGgI4009539; Thu, 1 Feb 2018 11:19:40 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=/w9Day58PGeftj95f1c6XtIcnHLODVoUU8vJx6E19mM=; b=lOraItXGrSi/V0LVIl4Jb9YzUjsl2S/Xir/s85wZHz7uJjIbussD/YxcZzIw773KKQaK PdUpeSzL/q2+HdBsMvL4AWxLC6MK79aQs+YPa2yLUgC8VEds+XOCe5ls/fceFUKuOPYH wiumX3QmUamdl22SWh3Rr9H6tfqJJT3tFC03LB2U7+jEsVCPES9w5kGvOGAxvMbzI2ax iHFwj/Sb60QFZ/8WTzge93epA42UidI+QT2OY8hmQ2STi9FoeBJojMHULwhi4NI++lDO 6U1FxTILQuHOAM7e1Q0QdR4aunUmBYbtFQsUtWH67BYcpo1dwhpL6/K/hFe2Kmu2t9Ph SA== Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by aserp2130.oracle.com with ESMTP id 2fuqkft0pw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 01 Feb 2018 11:19:40 +0000 Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w11BGIf7028678 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 1 Feb 2018 11:16:19 GMT Received: from abhmp0017.oracle.com (abhmp0017.oracle.com [141.146.116.23]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w11BGIWj002060; Thu, 1 Feb 2018 11:16:18 GMT Received: from mwanda (/41.202.241.60) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 01 Feb 2018 03:16:18 -0800 Date: Thu, 1 Feb 2018 14:16:10 +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: <20180201111610.24r75fssivaykff3@mwanda> References: <1517478532-5444-1-git-send-email-Julia.Lawall@lip6.fr> <20180201102501.kc5pfxojn7fhxat4@mwanda> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=627 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1802010148 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 12:06:35PM +0100, Julia Lawall wrote: > Here are the results that are eliminated by my change: > > drivers/clk/axs10x/pll_clock.c:323:1-6 kfree(pll_clk); > drivers/clk/clk-gpio.c:131:2-7 kfree(clk_gpio); > drivers/clk/clk-hsdk-pll.c:410:1-6 kfree(pll_clk); > drivers/clk/hisilicon/clk.c:97:1-6 kfree(clk_data); > drivers/mfd/syscon.c:130:1-8 iounmap(base); > drivers/mfd/syscon.c:132:1-6 kfree(syscon); > drivers/pinctrl/freescale/pinctrl-mxs.c:139:2-7 kfree(group); > drivers/pinctrl/samsung/pinctrl-exynos5440.c:264:1-6 kfree(gname); > drivers/platform/chrome/cros_ec_debugfs.c:248:1-6 kfree(msg); > drivers/pwm/pwm-lp3943.c:56:3-8 kfree(pwm_map); > > The semantic patch is pretty naive in that it assumes that all uses of the > same name point to the same thing. > Huh... It leads to false positives but it is an easier way to do cross function analysis. I had wondered about that. regards, dan carpenter