]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
testing: Fix bug in allocation tests for radix-tree linux.
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Mon, 28 Jan 2019 18:29:01 +0000 (13:29 -0500)
committerLiam R. Howlett <Liam.Howlett@Oracle.com>
Fri, 30 Oct 2020 18:55:23 +0000 (14:55 -0400)
When initializing kmem_cache for testing, ensure non_kernel is
initialized to zero.

Signed-off-by: Liam R. Howlett <Liam.Howlett@Oracle.com>
tools/testing/radix-tree/linux.c

index ff2b45f1f7fa1614fab937f95c036debc398a9c1..cf194e1f8f51165bfdc24ebfce7e668094767b59 100644 (file)
@@ -125,5 +125,6 @@ kmem_cache_create(const char *name, unsigned int size, unsigned int align,
        ret->nr_objs = 0;
        ret->objs = NULL;
        ret->ctor = ctor;
+       ret->non_kernel = 0;
        return ret;
 }