kstrto*: accept "-0" for signed conversion
authorAlexey Dobriyan <adobriyan@gmail.com>
Wed, 9 Sep 2015 22:36:17 +0000 (15:36 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 10 Sep 2015 20:29:01 +0000 (13:29 -0700)
commit2d2e4715a65ca7e81b292d01ae009a03ccedb9b5
tree540fd65bc0d6d914dd8c5074d63074d3dc8d4f23
parent3cdea4d71439fb5676b7334a333dab0f7b1bd2e9
kstrto*: accept "-0" for signed conversion

strtol(3) et al accept "-0", so should we.

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Cc: David Howells <dhowells@redhat.com>
Cc: Jan Kara <jack@suse.cz>
Cc: Joel Becker <jlbec@evilplan.org>
Cc: Mark Fasheh <mfasheh@suse.com>
Cc: Theodore Ts'o <tytso@mit.edu>
Cc: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/kstrtox.c
lib/test-kstrtox.c