summaryrefslogtreecommitdiff
path: root/Kconfig
diff options
context:
space:
mode:
authorMarkos Chandras <markos.chandras@imgtec.com>2014-08-18 14:04:11 (GMT)
committerRalf Baechle <ralf@linux-mips.org>2014-08-19 11:30:47 (GMT)
commit64615682658373516863b5b5971ff1d922d0ae7b (patch)
tree5d7960bd0cadbdbea4d546bf6baa40f6f4073697 /Kconfig
parent293076f300f52e1593b596b3f09ec057ee6e4a36 (diff)
downloadlinux-64615682658373516863b5b5971ff1d922d0ae7b.tar.xz
MIPS: Malta: Improve system memory detection for '{e, }memsize' >= 2G
Using kstrtol to parse the "{e,}memsize" variables was wrong because this parses signed long numbers. In case of '{e,}memsize' >= 2G, the top bit is set, resulting to -ERANGE errors and possibly random system memory boundaries. We fix this by replacing "kstrtol" with "kstrtoul". We also improve the code to check the kstrtoul return value and print a warning if an error was returned. Signed-off-by: Markos Chandras <markos.chandras@imgtec.com> Cc: <stable@vger.kernel.org> # v3.15+ Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/7543/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'Kconfig')
0 files changed, 0 insertions, 0 deletions