rcuja: fix randomness seed (per-thread), use u64 keyspace for random range
[userspace-rcu.git] / rcuja / rcuja-range.c
index 7e4585ef942d76f1811f3c958fff3138ac120ca3..26a0c2e97b50e8d58987913772c25d93a29cfc1e 100644 (file)
@@ -276,7 +276,7 @@ int cds_ja_range_add(struct cds_ja *ja,
        unsigned int nr_ranges, i;
        int ret;
 
-       if (start > end || end == UINT64_MAX)
+       if (start > end || end == UINT64_MAX || end > ja->key_max)
                return -EINVAL;
 
 retry:
This page took 0.022565 seconds and 4 git commands to generate.