summaryrefslogtreecommitdiffstats
path: root/lib/devmem_is_allowed.c
diff options
context:
space:
mode:
authorXiaoke Wang <xkernel.wang@foxmail.com>2022-04-29 23:38:00 +0200
committerakpm <akpm@linux-foundation.org>2022-04-29 23:38:00 +0200
commitd4557fae77079f4e53f06712395c7a28e3734eb7 (patch)
tree71aa8977c3720914a67869e23723b06291891506 /lib/devmem_is_allowed.c
parentget_maintainer: Honor mailmap for in file emails (diff)
downloadlinux-d4557fae77079f4e53f06712395c7a28e3734eb7.tar.xz
linux-d4557fae77079f4e53f06712395c7a28e3734eb7.zip
lib/test_meminit: optimize do_kmem_cache_rcu_persistent() test
To make the test more robust, there are the following changes: 1. add a check for the return value of kmem_cache_alloc(). 2. properly release the object `buf` on several error paths. 3. release the objects of `used_objects` if we never hit `saved_ptr`. 4. destroy the created cache by default. Link: https://lkml.kernel.org/r/tencent_7CB95F1C3914BCE1CA4A61FF7C20E7CCB108@qq.com Signed-off-by: Xiaoke Wang <xkernel.wang@foxmail.com> Reviewed-by: Andrew Morton <akpm@linux-foundation.org> Cc: Alexander Potapenko <glider@google.com> Cc: Andrey Konovalov <andreyknvl@gmail.com> Cc: Marco Elver <elver@google.com> Cc: Dmitry Vyukov <dvyukov@google.com> Cc: Andrey Ryabinin <ryabinin.a.a@gmail.com> Cc: Xiaoke Wang <xkernel.wang@foxmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'lib/devmem_is_allowed.c')
0 files changed, 0 insertions, 0 deletions