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 ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3yblFp2G27zDqpF for ; Tue, 14 Nov 2017 22:11:58 +1100 (AEDT) In-Reply-To: <20170626140601.7106-2-msuchanek@suse.de> To: Michal Suchanek , Benjamin Herrenschmidt , Paul Mackerras , Hari Bathini , Mahesh Salgaonkar , Andrew Morton , Michal Suchanek , Colin Ian King , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org From: Michael Ellerman Subject: Re: [2/2] powerpc/fadump: use kstrtoint to handle sysfs store Message-Id: <3yblFp1Dmrz9sPr@ozlabs.org> Date: Tue, 14 Nov 2017 22:11:58 +1100 (AEDT) List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Mon, 2017-06-26 at 14:06:01 UTC, Michal Suchanek wrote: > Currently sysfs store handlers in fadump use if buf[0] == 'char'. > > This means input "100foo" is interpreted as '1' and "01" as '0'. > > Change to kstrtoint so leading zeroes and the like is handled in > expected way. > > Signed-off-by: Michal Suchanek > Acked-by: Hari Bathini > Signed-off-by: Michal Suchanek <msuchanek@suse.de> Applied to powerpc next, thanks. https://git.kernel.org/powerpc/c/dcdc46794b7bb76733d9792cca2f45 cheers