Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp2353780ybe; Tue, 3 Sep 2019 11:34:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqwfLpHNVtxo/qUBYoCDMdpvNcCTT6vl0T3Q/ERdqRZnU6DohgqiPu2T51DOx/3D+LLTps6i X-Received: by 2002:a65:568d:: with SMTP id v13mr711512pgs.229.1567535679992; Tue, 03 Sep 2019 11:34:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567535679; cv=none; d=google.com; s=arc-20160816; b=j2bNKUJTIMXhYb4McIeQrmeAyaBhiNVOt8q324FwulMuV+EkzEWbFtUzb7aGdOZZpT sUGBD5fpJfkxQe5YBoCHO5L63vHIImu62niTFsufLRaDxMxtuO8EZ/fmhOmxiVT6evg+ eECqwoyKI/vqLobNdg0xlTazrJeAIlL1qQibBDJzbzIOdyetHlgff9JqWLptmFb2bZ2v 0ZIfhQQIs/+pEXOFVjNYLG3ozcXaPfoSKEk7vokT9CDoaEcdvZbfiRh0FtViFzU0pVGv BOs+nijzuNWt68PLL6kZvOBUKNBdcK9TeemgxeLXKGnd+MUwnXpBp/r1Cxtdyb3a8XFH KjeQ== 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:dkim-signature; bh=0oVSMAna4kl3ETzzaxWLpTjV167ytiAyprd3AP+QQXw=; b=DsWorPIZJHnz4rGnGgzCZBcNgYll6i/mB8ILJ0R5LFWMO45M58+99Wd3FK/TW4BdjZ nyJrayDnfmLpTserYbxdzxbIfU/2SBC8Y0Y7O2BMJpYAYllnPKeR2qti+EeBIFZYW4Kx fmT+Fv6uj+t82qmAHG6P/oeu7qfTsvJYqrAuQq8B9SnHJUL9IIdBf+QDH18jcTY4h6/E T9YPbxT28uvj/esRQf0hwGbroi3nsrCH3qvKmvAnDQ64qlpjzEEqK8JXRTASmCbMLYyy 5Uzqge5dyGTlSnx0ryI+LX/6jJeGQmG1+4zS6p55gFYT/Tf/ixgH2CKcSjkRgRfEFYLv oy7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kroah.com header.s=fm1 header.b=PserZJww; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=1AxtKOYr; 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 x10si2138322pln.268.2019.09.03.11.34.24; Tue, 03 Sep 2019 11:34:39 -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; dkim=pass header.i=@kroah.com header.s=fm1 header.b=PserZJww; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=1AxtKOYr; 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 S1726230AbfICSdg (ORCPT + 99 others); Tue, 3 Sep 2019 14:33:36 -0400 Received: from new4-smtp.messagingengine.com ([66.111.4.230]:40073 "EHLO new4-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725882AbfICSdf (ORCPT ); Tue, 3 Sep 2019 14:33:35 -0400 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailnew.nyi.internal (Postfix) with ESMTP id 6A2FE2B0E; Tue, 3 Sep 2019 14:33:34 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Tue, 03 Sep 2019 14:33:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kroah.com; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm1; bh=0oVSMAna4kl3ETzzaxWLpTjV167 ytiAyprd3AP+QQXw=; b=PserZJwwfQjDUhVLwb/5F3N1u/ETLAjozYldNmdsd59 C12dTcJOKvfjFMJBpYqcE8lBbu0G0B2EDDZYNbYj/XcdoDJtgKOyyD/lx4zM6Cqr pcJl1oXdXENQcB5/nnaKcxQf+4JqmtgAD+/gFV858lksC6KktQpTM7cy7ZC7aZS8 SodE2PzZRNgZlOc54gsETmMzAz8B38LtP/0B8lS2afS8Vs0bXIC/6ysCrs+QuSem UARqh0pvVnp3bA77ndzrjJx/vaRQiHyIUz47S/JU4ESiceV8nhQmih9l2reoxiHl hdyrCqMewL20r9tRgsHcFIhf0hxxUDg0+SVlqF78iMQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=0oVSMA na4kl3ETzzaxWLpTjV167ytiAyprd3AP+QQXw=; b=1AxtKOYrmlq6eSttWS8/0h N1IF6Kb+qO2ihJcgUrNpcbYIG5QSGOOfP/6eRXt4Gkke1NPTbn8mJOFpOIZVNYvD 8BVqaZ8yqdXg90wcl2h3qjoC3X4DKIDFenHStLj0GQnytHkQ6HAiWub0QwH5/bXL c0ky4AFwOfUcfKzViNlffue+Mkr9eveH2sYngzmZA1ksbs7Yua27CeVl82WgcVGU EboAfYV6A3wmQr6RfTvWZR2aA4kUxPotd75gmPsmRLXl6/QPXcOdKtpluPBQdgYH mtRiH9J3+NqwxPyRFOgzXjPFCcQHB9+NhSZ9Cp71/JUfpNMkxlOPzJac8c/07URg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrudejfedgleejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhfgggtuggjfgesthdtredttdervdenucfhrhhomhepifhrvghg ucfmjfcuoehgrhgvgheskhhrohgrhhdrtghomheqnecuffhomhgrihhnpehnvggvuggvug drnhgvthenucfkphepkeefrdekiedrkeelrddutdejnecurfgrrhgrmhepmhgrihhlfhhr ohhmpehgrhgvgheskhhrohgrhhdrtghomhenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) by mail.messagingengine.com (Postfix) with ESMTPA id 30D57D6005E; Tue, 3 Sep 2019 14:33:33 -0400 (EDT) Date: Tue, 3 Sep 2019 20:33:31 +0200 From: Greg KH To: Marcelo Ricardo Leitner Cc: Baolin Wang , stable@vger.kernel.org, vyasevich@gmail.com, nhorman@tuxdriver.com, davem@davemloft.net, hariprasad.kelam@gmail.com, linux-sctp@vger.kernel.org, netdev@vger.kernel.org, arnd@arndb.de, orsonzhai@gmail.com, vincent.guittot@linaro.org, linux-kernel@vger.kernel.org Subject: Re: [BACKPORT 4.14.y 4/8] net: sctp: fix warning "NULL check before some freeing functions is not needed" Message-ID: <20190903183331.GB26562@kroah.com> References: <0e71732006c11f119826b3be9c1a9ccd102742d8.1567492316.git.baolin.wang@linaro.org> <20190903145206.GB3499@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190903145206.GB3499@localhost.localdomain> User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 03, 2019 at 11:52:06AM -0300, Marcelo Ricardo Leitner wrote: > On Tue, Sep 03, 2019 at 02:58:16PM +0800, Baolin Wang wrote: > > From: Hariprasad Kelam > > > > This patch removes NULL checks before calling kfree. > > > > fixes below issues reported by coccicheck > > net/sctp/sm_make_chunk.c:2586:3-8: WARNING: NULL check before some > > freeing functions is not needed. > > net/sctp/sm_make_chunk.c:2652:3-8: WARNING: NULL check before some > > freeing functions is not needed. > > net/sctp/sm_make_chunk.c:2667:3-8: WARNING: NULL check before some > > freeing functions is not needed. > > net/sctp/sm_make_chunk.c:2684:3-8: WARNING: NULL check before some > > freeing functions is not needed. > > Hi. This doesn't seem the kind of patch that should be backported to > such old/stable releases. After all, it's just a cleanup. I agree, this does not seem necessary _unless_ it is needed for a later real fix. thanks, greg k-h