summaryrefslogtreecommitdiff
path: root/mm
diff options
context:
space:
mode:
authorXiaoke Wang <xkernel.wang@foxmail.com>2022-03-04 12:12:15 +0300
committerAndrew Morton <akpm@linux-foundation.org>2022-10-13 04:51:49 +0300
commitea091fa53680030881b56520d731e36d3ff6cdd5 (patch)
treee80c96410ea522b546a8b4163063cc81eec920ca /mm
parentac801e7e252c5588325e3c983c7d4167fc68c024 (diff)
downloadlinux-ea091fa53680030881b56520d731e36d3ff6cdd5.tar.xz
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/tencent_D44A49FFB420EDCCBFB9221C8D14DFE12908@qq.com Signed-off-by: Xiaoke Wang <xkernel.wang@foxmail.com> Reviewed-by: Alexander Potapenko <glider@google.com> Cc: Andrey Konovalov <andreyknvl@gmail.com> Cc: Andrey Ryabinin <ryabinin.a.a@gmail.com> Cc: Dmitry Vyukov <dvyukov@google.com> Cc: Marco Elver <elver@google.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions