[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <3sdjhl1yhFz9sQw@ozlabs.org>
Date: Tue, 20 Sep 2016 23:07:19 +1000 (AEST)
From: Michael Ellerman <patch-notifications@...erman.id.au>
To: xinhui <xinhui.pan@...ux.vnet.ibm.com>,
linuxppc-dev@...ts.ozlabs.org, linux-kernel@...r.kernel.org
Cc: Andrzej Hajda <a.hajda@...sung.com>,
Christophe Jaillet <christophe.jaillet@...adoo.fr>,
Nathan Fontenot <nfont@...ux.vnet.ibm.com>,
Hari Bathini <hbathini@...ux.vnet.ibm.com>,
Paul Mackerras <paulus@...ba.org>
Subject: Re: powerpc/nvram: Fix a memory leak in err path
On Wed, 2015-09-12 at 10:00:53 UTC, xinhui wrote:
> If kmemdup fails, We need kfree *buff* first then return -ENOMEM.
> Otherwise there is a memory leak.
>
> Signed-off-by: Pan Xinhui <xinhui.pan@...ux.vnet.ibm.com>
> Reviewed-by: Nathan Fontenot <nfont@...ux.vnet.ibm.com>
Applied to powerpc next, thanks.
https://git.kernel.org/powerpc/c/0d0fecc5b5bfddb0e67bef985c
cheers
Powered by blists - more mailing lists