Re: [1/2] powerpc/nvram: Add missing kfree in error path

2015-10-12 Thread Michael Ellerman
On Fri, 2015-17-07 at 07:19:59 UTC, Christophe Jaillet wrote: > If 'nvram_write_header' fails, then 'new_part' should be freed, otherwise, > there is a memory leak. > > Signed-off-by: Christophe JAILLET Applied to powerpc next, thanks. https://git.kernel.org/powerpc/c/7d523187173294f6ae3b86a4

Re: [1/2] powerpc/nvram: Add missing kfree in error path

2015-10-12 Thread Michael Ellerman
On Fri, 2015-17-07 at 07:19:59 UTC, Christophe Jaillet wrote: > If 'nvram_write_header' fails, then 'new_part' should be freed, otherwise, > there is a memory leak. > > Signed-off-by: Christophe JAILLET Applied to powerpc next, thanks.

[PATCH 1/2] powerpc/nvram: Add missing kfree in error path

2015-07-17 Thread Christophe JAILLET
If 'nvram_write_header' fails, then 'new_part' should be freed, otherwise, there is a memory leak. Signed-off-by: Christophe JAILLET --- This patch is *untested* because I have no way to trigger the error. --- arch/powerpc/kernel/nvram_64.c | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH 1/2] powerpc/nvram: Add missing kfree in error path

2015-07-17 Thread Christophe JAILLET
If 'nvram_write_header' fails, then 'new_part' should be freed, otherwise, there is a memory leak. Signed-off-by: Christophe JAILLET christophe.jail...@wanadoo.fr --- This patch is *untested* because I have no way to trigger the error. --- arch/powerpc/kernel/nvram_64.c | 1 + 1 file changed, 1