diff options
| author | Xiaoke Wang <[email protected]> | 2022-03-04 17:12:15 +0800 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2022-10-12 18:51:49 -0700 |
| commit | ea091fa53680030881b56520d731e36d3ff6cdd5 (patch) | |
| tree | e80c96410ea522b546a8b4163063cc81eec920ca /tools/perf/scripts/python | |
| parent | ac801e7e252c5588325e3c983c7d4167fc68c024 (diff) | |
lib/test_meminit: add checks for the allocation functions
alloc_pages(), kmalloc() and vmalloc() are all memory allocation functions
which can return NULL when some internal memory failures happen. So it is
better to check the return of them to catch the failure in time for better
test them.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Xiaoke Wang <[email protected]>
Reviewed-by: Alexander Potapenko <[email protected]>
Cc: Andrey Konovalov <[email protected]>
Cc: Andrey Ryabinin <[email protected]>
Cc: Dmitry Vyukov <[email protected]>
Cc: Marco Elver <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions