MIPS: FW: Use kstrtoul() to parse unsigned long from the fw environment
authorAlban Bedel <albeu@free.fr>
Sat, 8 Nov 2014 11:39:39 +0000 (12:39 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 24 Nov 2014 06:45:26 +0000 (07:45 +0100)
commit484c344985ddf8e9ed12b8cf540eba0b1d869236
tree5008ab8a2aeeb4c482607660ba36bb5ad5348bf3
parent4a792e56cfdbe000d01c01ce356d13f39f5494e7
MIPS: FW: Use kstrtoul() to parse unsigned long from the fw environment

Fix some value corruptions with values that can't be represented in a
signed long.

Signed-off-by: Alban Bedel <albeu@free.fr>
Cc: linux-kernel@vger.kernel.org
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/8358/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/fw/lib/cmdline.c