Home
last modified time | relevance | path

Searched hist:c83f320e (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/tools/testing/selftests/cgroup/
H A Dtest_memcontrol.cc83f320e Sun Feb 26 07:16:33 CST 2023 Ivan Orlov <ivan.orlov0322@gmail.com> selftests: cgroup: Add 'malloc' failures checks in test_memcontrol

There are several 'malloc' calls in test_memcontrol, which can be
unsuccessful. This patch will add 'malloc' failures checking to
give more details about test's fail reasons and avoid possible
undefined behavior during the future null dereference (like the
one in alloc_anon_50M_check_swap function).

Signed-off-by: Ivan Orlov <ivan.orlov0322@gmail.com>
Reviewed-by: Muchun Song <songmuchun@bytedance.com>
Acked-by: Shakeel Butt <shakeelb@google.com>
Acked-by: Roman Gushchin <roman.gushchin@linux.dev>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>