Unverified Commit 7999f2b5 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

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

parents b3e51d1b bf44df3b
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1285,6 +1285,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);