]> 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)
commit1da041fd1479635c9aad18b3d6a6dff825194793
tree2446488fa1dc54398b339fde49912352c60d8f4b
parent6eb9a90c76bf32a5534e5196d29fa1f400d2c9cc
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