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

2017-11-12 Thread Hari Bathini
Thanks for the patch, Michal. On Monday 26 June 2017 07:36 PM, 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 wa

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

2017-06-26 Thread Michal Suchanek
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 --- arch/powerpc/kernel/fadump.c | 17 +--