proc: convert to kstrto*()/kstrto*_from_user()
authorAlexey Dobriyan <adobriyan@gmail.com>
Wed, 9 Sep 2015 22:36:59 +0000 (15:36 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 10 Sep 2015 20:29:01 +0000 (13:29 -0700)
commit774636e19ed514cdf560006813c0473409616de8
tree1b25c96cca1035d1fc45d758bb17e966d4cadf12
parent2d2e4715a65ca7e81b292d01ae009a03ccedb9b5
proc: convert to kstrto*()/kstrto*_from_user()

Convert from manual allocation/copy_from_user/...  to kstrto*() family
which were designed for exactly that.

One case can not be converted to kstrto*_from_user() to make code even
more simpler because of whitespace stripping, oh well...

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/proc/base.c