]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - lib/rhashtable.c
kobject: kset_create_and_add() - fetch ownership info from parent
[mirror_ubuntu-bionic-kernel.git] / lib / rhashtable.c
index ddd7dde87c3ca0db910d67a567f2a68c8d8e847e..b734ce731a7a5c6873cac5f931cd44ea8017e7cf 100644 (file)
@@ -537,8 +537,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);