Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1487322

Re: powerpc/nvram: Fix a memory leak in err path

From Michael Ellerman <patch-notifications@ellerman.id.au>
Newsgroups linux.kernel
Subject Re: powerpc/nvram: Fix a memory leak in err path
Date 2016-09-20 15:10 +0200
Message-ID <sjsYa-3nb-11@gated-at.bofh.it> (permalink)
References <qDJR8-6Yw-25@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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@linux.vnet.ibm.com>
> Reviewed-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>

Applied to powerpc next, thanks.

https://git.kernel.org/powerpc/c/0d0fecc5b5bfddb0e67bef985c

cheers

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

Re: powerpc/nvram: Fix a memory leak in err path Michael Ellerman <patch-notifications@ellerman.id.au> - 2016-09-20 15:10 +0200

csiph-web