From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754234AbdKNLMG (ORCPT ); Tue, 14 Nov 2017 06:12:06 -0500 Received: from ozlabs.org ([103.22.144.67]:49073 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751887AbdKNLL7 (ORCPT ); Tue, 14 Nov 2017 06:11:59 -0500 X-powerpc-patch-notification: thanks X-powerpc-patch-commit: dcdc46794b7bb76733d9792cca2f45871d66881f 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) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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