[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAMz4kuJMfAR6w+SpiTA-EWMB3MQ_wiuW+_-DfL-8zdrCagmS0Q@mail.gmail.com>
Date: Wed, 4 Sep 2019 10:38:40 +0800
From: Baolin Wang <baolin.wang@...aro.org>
To: Greg KH <greg@...ah.com>
Cc: Marcelo Ricardo Leitner <marcelo.leitner@...il.com>,
"# 3.4.x" <stable@...r.kernel.org>, vyasevich@...il.com,
Neil Horman <nhorman@...driver.com>,
David Miller <davem@...emloft.net>, hariprasad.kelam@...il.com,
linux-sctp@...r.kernel.org, Networking <netdev@...r.kernel.org>,
Arnd Bergmann <arnd@...db.de>,
Orson Zhai <orsonzhai@...il.com>,
Vincent Guittot <vincent.guittot@...aro.org>,
LKML <linux-kernel@...r.kernel.org>
Subject: Re: [BACKPORT 4.14.y 4/8] net: sctp: fix warning "NULL check before
some freeing functions is not needed"
On Wed, 4 Sep 2019 at 02:33, Greg KH <greg@...ah.com> wrote:
>
> 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 <hariprasad.kelam@...il.com>
> > >
> > > 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.
It can remove warnings from our product kernel since this patch
(c4964bfaf433 sctp: Free cookie before we memdup a new one) was merged
into stable, we still need backport it to our product kernel manually.
But if you still think this is unnecessary, please ignore this patch.
Thanks for your comments.
--
Baolin Wang
Best Regards
Powered by blists - more mailing lists