[patch] tools/testing/radix-tree: ida_get_new_above returns EAGAIN
From: Jeff Moyer
Date: Fri Oct 20 2017 - 19:13:02 EST
...not ENOMEM. Fix it.
Signed-off-by: Jeff Moyer <jmoyer@xxxxxxxxxx>
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);
}