diff options
author | Markos Chandras <[email protected]> | 2014-08-18 15:04:11 +0100 |
---|---|---|
committer | Ralf Baechle <[email protected]> | 2014-08-26 02:18:54 +0200 |
commit | a168dc393dde134c7ac9e542d778ed1ec3e25211 (patch) | |
tree | de1c45eaf49f6e96280f042dd1091992bb279042 /tools/perf/scripts/python/event_analyzing_sample.py | |
parent | c6c7d7c343d97720f4e12678f661d262dafec6f7 (diff) |
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 <[email protected]>
Cc: <[email protected]> # v3.15+
Cc: [email protected]
Patchwork: https://patchwork.linux-mips.org/patch/7543/
Signed-off-by: Ralf Baechle <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions