diff options
author | Pan Xinhui <xinhui.pan@linux.vnet.ibm.com> | 2015-12-10 15:30:02 +0800 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2016-09-20 16:15:42 +1000 |
commit | 11b7e154b132232535befe51c55db048069c8461 (patch) | |
tree | ba582341a1d1c15deb471f5f05f2966c35ab842e /arch/powerpc/platforms | |
parent | 0d0fecc5b5bfddb0e67bef985cdeda2eac7ad6d8 (diff) |
powerpc/nvram: Fix an incorrect partition merge
When we merge two contiguous partitions whose signatures are marked
NVRAM_SIG_FREE, We need update prev's length and checksum, then write it
to nvram, not cur's. So lets fix this mistake now.
Also use memset instead of strncpy to set the partition's name. It's
more readable if we want to fill up with duplicate chars .
Fixes: fa2b4e54d41f ("powerpc/nvram: Improve partition removal")
Signed-off-by: Pan Xinhui <xinhui.pan@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/platforms')
0 files changed, 0 insertions, 0 deletions