Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 265970
b: refs/heads/master
c: af089c1
h: refs/heads/master
v: v3
  • Loading branch information
Javier Cardona authored and John W. Linville committed Sep 13, 2011
1 parent e23728b commit 27e3667
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5982b47aa410e6aef55a5b0087269f5c9c172110
refs/heads/master: af089c15cb13e1c5d984e41f495c8363dd5b1e30
7 changes: 6 additions & 1 deletion trunk/net/mac80211/mesh_pathtbl.c
Original file line number Diff line number Diff line change
Expand Up @@ -991,9 +991,14 @@ void mesh_path_discard_frame(struct sk_buff *skb,

da = hdr->addr3;
ra = hdr->addr1;
rcu_read_lock();
mpath = mesh_path_lookup(da, sdata);
if (mpath)
if (mpath) {
spin_lock_bh(&mpath->state_lock);
sn = ++mpath->sn;
spin_unlock_bh(&mpath->state_lock);
}
rcu_read_unlock();
mesh_path_error_tx(sdata->u.mesh.mshcfg.element_ttl, skb->data,
cpu_to_le32(sn), reason, ra, sdata);
}
Expand Down

0 comments on commit 27e3667

Please sign in to comment.