[2/2] powerpc/fadump: use kstrtoint to handle sysfs store

Michael Ellerman patch-notifications at ellerman.id.au
Tue Nov 14 22:11:58 AEDT 2017


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 <msuchanek at suse.de>
> Acked-by: Hari Bathini <hbathini at linux.vnet.ibm.com>
> Signed-off-by: Michal Suchanek <a class="moz-txt-link-rfc2396E" href="mailto:msuchanek at suse.de"><msuchanek at suse.de></a></pre>

Applied to powerpc next, thanks.

https://git.kernel.org/powerpc/c/dcdc46794b7bb76733d9792cca2f45

cheers


More information about the Linuxppc-dev mailing list