From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ozlabs.org (ozlabs.org [IPv6:2401:3900:2:1::2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3sdjhm1fX0zDsfj for ; Tue, 20 Sep 2016 23:07:20 +1000 (AEST) 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) List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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