]> 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>
Wed, 31 Jul 2019 14:52:37 +0000 (10:52 -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 62bf900413a97153a27597c307dc0568c430f987..c9937c9f002ea4182894b7425bdcbc558f41dcf1 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;
 }