diff options
| author | Philipp Hachtmann <[email protected]> | 2014-01-23 15:53:10 -0800 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2014-01-23 16:36:51 -0800 |
| commit | 87379ec8c2b8ae0acd526b87d2240afca92a7505 (patch) | |
| tree | cd211d723a92cb4a8d7375e204d771665b60c11b /tools/perf/scripts/python/syscall-counts.py | |
| parent | d6441637709ba302905f1076f2afcb6d4ea3a901 (diff) | |
mm/nobootmem.c: add return value check in __alloc_memory_core_early()
When memblock_reserve() fails because memblock.reserved.regions cannot
be resized, the caller (e.g. alloc_bootmem()) is not informed of the
failed allocation. Therefore alloc_bootmem() silently returns the same
pointer again and again.
This patch adds a check for the return value of memblock_reserve() in
__alloc_memory_core().
Signed-off-by: Philipp Hachtmann <[email protected]>
Reviewed-by: Tejun Heo <[email protected]>
Cc: Joonsoo Kim <[email protected]>
Cc: Johannes Weiner <[email protected]>
Cc: Tang Chen <[email protected]>
Cc: Toshi Kani <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions