Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp241yba; Mon, 20 May 2019 03:53:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqwxuldHtgAhdngbRm4e/BR10YBXens1EqPj/FisL9kl+MsLfZBDyL7FoiXRsv1e/iJ2Gt0i X-Received: by 2002:a17:902:e701:: with SMTP id co1mr41256432plb.259.1558349626927; Mon, 20 May 2019 03:53:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558349626; cv=none; d=google.com; s=arc-20160816; b=yI6ElOcE/du8dBcIipBZz+MipaqA6q7D282kdhH9zLmzKbTVdUAcgFk3g6sSFWZEo+ Lyv4rsMwcqSLFWBLuvlpxhI6RAtRkjhnhCkfNLyRurrp8a4j9HSQJc8sfDFGLMpg4l/B n81O2tu9ZRl6zYzSyM/d8JU9Fxa2JQsOwGnPamuy/I+4ZE7ZVxyRKs7ydc4QeSvl1hHP 5mXDDgO6Xp0wACdEJCcu38YCqKLaQ/W+mDVOa5+OxLQ8yd/T4rDe0foNK1/qiUGzsDrM GS3XbNTWpE2zlrWvT769vuHmFMnoZqrgwfoVq9C6vcVvwEIgmuRy2gl0V1lLznD1JDsp PmOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=jb5ar9GhAJdw4yYmi9RlzNy9F42lbHVNlVpxzqe5s8g=; b=RULSEw+BOujkzp3lgWGOKLNZbKvoqyskhT8JrsGM9131aN+gbz1+gQCf76sBo+2FDl IGOvqeXW1N6RrIJAxHoQdVdmLQ5NHeSPcehXYcGzE6nlV45V6dAgnzltKSUhgsY2OMUB AxwJZJzeoQflMWHKjK6A0Ob10vrHC/9/WSOQ6g52WFDkszCv63AijZU39om5uvVo0RU5 dKx3y8Za6fh7vcOLlTPBBfglhAfOSUh3Clg+1ccDR+7/Jnbnblv407iqkztrAKsvpJY6 c/fOum4OXntSEYVIO7DMMYcV20vOf9cLxnSkczY0LAd0POMYY7ARqkwoREa9QxNdvGlu rsVQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h10si17074828pll.2.2019.05.20.03.53.31; Mon, 20 May 2019 03:53:46 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732370AbfETJvZ (ORCPT + 99 others); Mon, 20 May 2019 05:51:25 -0400 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:43971 "EHLO mail3-relais-sop.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732361AbfETJvZ (ORCPT ); Mon, 20 May 2019 05:51:25 -0400 X-IronPort-AV: E=Sophos;i="5.60,491,1549926000"; d="scan'208";a="306577628" Received: from unknown (HELO hadrien) ([163.173.90.196]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 20 May 2019 11:51:23 +0200 Date: Mon, 20 May 2019 11:51:23 +0200 (CEST) From: Julia Lawall X-X-Sender: jll@hadrien To: Pavel Machek cc: wen.yang99@zte.com.cn, Markus.Elfring@web.de, cocci@systeme.lip6.fr, linux-kernel@vger.kernel.org, Gilles Muller , yamada.masahiro@socionext.com, michal.lkml@markovi.net, nicolas.palix@imag.fr Subject: Re: Coccinelle: semantic patch for missing of_node_put In-Reply-To: <20190520093303.GA9320@atrey.karlin.mff.cuni.cz> Message-ID: References: <201905171432571474636@zte.com.cn> <20190520093303.GA9320@atrey.karlin.mff.cuni.cz> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 20 May 2019, Pavel Machek wrote: > Hi! > > > A semantic patch has no access to comments. The only thing I can see to > > do is to use python to interact with some external tools. For example, > > you could write some code to collect the comments in a file and the lines > > on which they occur, and then get the comment that most closely precedes > > the start of the function. > > How dangerous is missing of_node_put? AFAICT it will only result into > very small, one-time memory leak, right? > > Could we make sure these patches are _not_ going to stable? Leaking > few bytes once per boot is not really a serious bug. Agreed. Just tell Sasha. julia > Pavel > > -- > (english) http://www.livejournal.com/~pavelmachek > (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html >