Skip to content
Commit 7d523187 authored by Christophe Jaillet's avatar Christophe Jaillet Committed by Michael Ellerman
Browse files

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: default avatarChristophe Jaillet <christophe.jaillet@wanadoo.fr>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent 2adc48a6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment