From: Liam R. Howlett Date: Mon, 28 Jan 2019 18:29:01 +0000 (-0500) Subject: testing: Fix bug in allocation tests for radix-tree linux. X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=9d2f16c2e4651248d167f370a04af8a4b529c9cd;p=users%2Fjedix%2Flinux-maple.git testing: Fix bug in allocation tests for radix-tree linux. When initializing kmem_cache for testing, ensure non_kernel is initialized to zero. Signed-off-by: Liam R. Howlett --- diff --git a/tools/testing/radix-tree/linux.c b/tools/testing/radix-tree/linux.c index 62bf900413a97..c9937c9f002ea 100644 --- a/tools/testing/radix-tree/linux.c +++ b/tools/testing/radix-tree/linux.c @@ -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; }