Unverified Commit 22bc2e7d authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!10261 batman-adv: bypass empty buckets in batadv_purge_orig_ref()

parents 90e76644 ddfa5cf4
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1238,6 +1238,8 @@ void batadv_purge_orig_ref(struct batadv_priv *bat_priv)
	/* for all origins... */
	for (i = 0; i < hash->size; i++) {
		head = &hash->table[i];
		if (hlist_empty(head))
			continue;
		list_lock = &hash->list_locks[i];

		spin_lock_bh(list_lock);