From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933094AbcITNHf (ORCPT ); Tue, 20 Sep 2016 09:07:35 -0400 Received: from ozlabs.org ([103.22.144.67]:42234 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932602AbcITNHW (ORCPT ); Tue, 20 Sep 2016 09:07:22 -0400 X-powerpc-patch-notification: thanks X-powerpc-patch-commit: 11b7e154b132232535befe51c55db048069c8461 In-Reply-To: <566929FA.2050409@linux.vnet.ibm.com> To: xinhui , linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org From: Michael Ellerman Cc: Andrzej Hajda , Christophe Jaillet , Hari Bathini , Paul Mackerras , tglx@linutronix.de, Nathan Fontenot Subject: Re: powerpc/nvram: Fix an incorrect partition merge Message-Id: <3sdjhm0b28z9t0m@ozlabs.org> Date: Tue, 20 Sep 2016 23:07:19 +1000 (AEST) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2015-10-12 at 07:30:02 UTC, xinhui wrote: > From: Pan Xinhui > > 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 . > > Signed-off-by: Pan Xinhui Applied to powerpc next, thanks. https://git.kernel.org/powerpc/c/11b7e154b132232535befe51c5 cheers