diff --git a/include/linux/rhashtable.h b/include/linux/rhashtable.h index 8463a128e..9cc18d304 100644 --- a/include/linux/rhashtable.h +++ b/include/linux/rhashtable.h @@ -603,6 +603,11 @@ static inline struct rhash_head *__rhashtable_lookup( restart: hash = rht_key_hashfn(ht, tbl, key, params); bkt = rht_bucket(tbl, hash); + + if (!bkt) { + return NULL; + } + do { rht_for_each_rcu_from(he, rht_ptr_rcu(bkt), tbl, hash) { if (params.obj_cmpfn ?