aboutsummaryrefslogtreecommitdiffstats
path: root/lib/test_string.c
diff options
context:
space:
mode:
authorXiaoke Wang <[email protected]>2022-04-29 21:38:00 +0000
committerakpm <[email protected]>2022-04-29 21:38:00 +0000
commitd4557fae77079f4e53f06712395c7a28e3734eb7 (patch)
tree71aa8977c3720914a67869e23723b06291891506 /lib/test_string.c
parentget_maintainer: Honor mailmap for in file emails (diff)
downloadkernel-d4557fae77079f4e53f06712395c7a28e3734eb7.tar.gz
kernel-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/[email protected] Signed-off-by: Xiaoke Wang <[email protected]> Reviewed-by: Andrew Morton <[email protected]> Cc: Alexander Potapenko <[email protected]> Cc: Andrey Konovalov <[email protected]> Cc: Marco Elver <[email protected]> Cc: Dmitry Vyukov <[email protected]> Cc: Andrey Ryabinin <[email protected]> Cc: Xiaoke Wang <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'lib/test_string.c')
0 files changed, 0 insertions, 0 deletions