]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/nvram: Add missing kfree in error path
authorChristophe Jaillet <christophe.jaillet@wanadoo.fr>
Fri, 17 Jul 2015 07:19:59 +0000 (09:19 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 2 Oct 2015 12:54:55 +0000 (22:54 +1000)
commitfbe98a364b1cc7f558f73189eccf020c743d7373
tree2446488fa1dc54398b339fde49912352c60d8f4b
parent922b5c4ec75b06685538e43a7e1e56ee6e2c51bd
powerpc/nvram: Add missing kfree in error path

If 'nvram_write_header' fails, then 'new_part' should be freed, otherwise,
there is a memory leak.

Signed-off-by: Christophe Jaillet <christophe.jaillet@wanadoo.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/nvram_64.c