[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