From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752784AbbL0Lll (ORCPT ); Sun, 27 Dec 2015 06:41:41 -0500 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:13357 "EHLO mail2-relais-roc.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751228AbbL0Lle (ORCPT ); Sun, 27 Dec 2015 06:41:34 -0500 X-IronPort-AV: E=Sophos;i="5.20,485,1444687200"; d="scan'208";a="194570785" Date: Sun, 27 Dec 2015 12:41:30 +0100 (CET) From: Julia Lawall X-X-Sender: jll@localhost6.localdomain6 To: SF Markus Elfring cc: Julia Lawall , Coccinelle , LKML , kernel-janitors@vger.kernel.org, linux-media@vger.kernel.org, netdev@vger.kernel.org, linux-i2c@vger.kernel.org, linux-spi@vger.kernel.org, dri-devel@lists.freedesktop.org, Gilles Muller , Michal Marek , Nicolas Palix , Sergei Shtylyov Subject: Re: [Cocci] [PATCH v2] coccinelle: api: check for propagation of error from platform_get_irq In-Reply-To: <567F9A29.50202@users.sourceforge.net> Message-ID: References: <1451157891-24881-1-git-send-email-Julia.Lawall@lip6.fr> <567EF188.7020203@cogentembedded.com> <567EF895.6080702@cogentembedded.com> <567F9A29.50202@users.sourceforge.net> User-Agent: Alpine 2.02 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="8323328-506290417-1451216492=:2038" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323328-506290417-1451216492=:2038 Content-Type: TEXT/PLAIN; charset=windows-1252 Content-Transfer-Encoding: 8BIT On Sun, 27 Dec 2015, SF Markus Elfring wrote: > > The error return value of platform_get_irq seems to often get dropped. > > How do you think about any more fine-tuning here? > > Commit message: > * … of the platform_get_irq() function seems to get dropped too often. > > * Why do you concentrate on a single function name? > Do you plan to extend this source code analysis approach? > > > > +@script:python r_report depends on report@ > > +j0 << r.j0; > > +j1 << r.j1; > > +@@ > > + > > +msg = "Propagate return value of platform_get_irq around line %s." % (j1[0].line) > > Are there more unchecked return values which are interesting > for further considerations? > https://cwe.mitre.org/data/definitions/252.html The value is not unchecked. I made a specific rule because the specific problem is quite common. julia --8323328-506290417-1451216492=:2038--