[<prev] [next>] [day] [month] [year] [list]
Message-ID: <x49wp3p8lc7.fsf@segfault.boston.devel.redhat.com>
Date: Fri, 20 Oct 2017 19:12:56 -0400
From: Jeff Moyer <jmoyer@...hat.com>
To: Matthew Wilcox <mawilcox@...rosoft.com>
Cc: linux-kernel@...r.kernel.org
Subject: [patch] tools/testing/radix-tree: ida_get_new_above returns EAGAIN
...not ENOMEM. Fix it.
Signed-off-by: Jeff Moyer <jmoyer@...hat.com>
diff --git a/tools/testing/radix-tree/idr-test.c b/tools/testing/radix-tree/idr-test.c
index 30cd0b2..2056d83 100644
--- a/tools/testing/radix-tree/idr-test.c
+++ b/tools/testing/radix-tree/idr-test.c
@@ -380,7 +380,7 @@ void ida_check_random(void)
do {
ida_pre_get(&ida, GFP_KERNEL);
err = ida_get_new_above(&ida, bit, &id);
- } while (err == -ENOMEM);
+ } while (err == -EAGAIN);
assert(!err);
assert(id == bit);
}
Powered by blists - more mailing lists