diff options
author | Tiezhu Yang <[email protected]> | 2022-05-24 10:27:49 +0800 |
---|---|---|
committer | Thomas Bogendoerfer <[email protected]> | 2022-05-24 13:04:53 +0200 |
commit | fb3d6967d508a59b2e8df8358aad1c35579a2833 (patch) | |
tree | cd5e4b77d8bec43f2be94234968fa1050ee89abb /scripts/clang-tools/gen_compile_commands.py | |
parent | 31f12fdc2f1ed59f1a919f57b8b31af614b8c5ee (diff) |
MIPS: Return -EINVAL if mem parameter is empty in early_parse_mem()
In the current code, the users usually need to make sure the value
of mem parameter is correct, but it is better to do some check to
avoid potential boot hangs.
This commit checks whether mem parameter is empty, if yes, return
-EINVAL before call memblock_remove() and memblock_add().
Signed-off-by: Tiezhu Yang <[email protected]>
Signed-off-by: Thomas Bogendoerfer <[email protected]>
Diffstat (limited to 'scripts/clang-tools/gen_compile_commands.py')
0 files changed, 0 insertions, 0 deletions