Skip to contentSkip to conversation

tools/testing/radix-tree: ida_get_new_above returns EAGAIN

PATCH New Jeff Moyer 1 participant 1 message Oct 20, 2017 Xarray

lore
Share & tools
lore

Jeff Moyer

author
#0 lore raw

PATCH 1/1 tools/testing/radix-tree: ida_get_new_above returns EAGAIN

...not ENOMEM. Fix it.

tools/testing/radix-tree/idr-test.c +1 -1
index 30cd0b2..2056d83 100644
@@ -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);
 		}