Skip to contentSkip to conversation

mac80211: add missing "break" statement in mesh code

PATCH New Johannes Berg 1 participant 1 message Feb 25, 2008 mac80211

lore
Share & tools
lore

Johannes Berg

author maintainer
#0 lore raw

PATCH 1/1 mac80211: add missing "break" statement in mesh code

This inserts a missing break statement which, if hit, would cause the code to fall-through and unlock a spinlock twice. Noticed via sparse's "lock count wrong in basic block" warning and careful code inspection.

Cc Luis Carlos Cobo <[email protected]>
---
 net/mac80211/mesh_plink.c |    1 +
 1 file changed, 1 insertion(+)
net/mac80211/mesh_plink.c +1 -0
@@ -691,6 +691,7 @@ void mesh_rx_plink_frame(struct net_devi
 			spin_unlock_bh(&sta->plink_lock);
 			mesh_plink_frame_tx(dev, PLINK_CLOSE, sta->addr, llid,
 					    plid, reason);
+			break;
 		case OPN_ACPT:
 			if (del_timer(&sta->plink_timer))
 				sta_info_put(sta);