|
@@ -506,8 +506,10 @@ static void *rhashtable_lookup_one(struct rhashtable *ht,
|
|
|
if (!key ||
|
|
|
(ht->p.obj_cmpfn ?
|
|
|
ht->p.obj_cmpfn(&arg, rht_obj(ht, head)) :
|
|
|
- rhashtable_compare(&arg, rht_obj(ht, head))))
|
|
|
+ rhashtable_compare(&arg, rht_obj(ht, head)))) {
|
|
|
+ pprev = &head->next;
|
|
|
continue;
|
|
|
+ }
|
|
|
|
|
|
if (!ht->rhlist)
|
|
|
return rht_obj(ht, head);
|