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

!8733 batman-adv: Avoid infinite loop trying to resize local TT

parents 3590ef8f 8312c981
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4189,7 +4189,7 @@ void batadv_tt_local_resize_to_mtu(struct net_device *soft_iface)

	spin_lock_bh(&bat_priv->tt.commit_lock);

	while (true) {
	while (timeout) {
		table_size = batadv_tt_local_table_transmit_size(bat_priv);
		if (packet_size_max >= table_size)
			break;