Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 90073
b: refs/heads/master
c: dc0b0f7
h: refs/heads/master
i:
  90071: d83d11c
v: v3
  • Loading branch information
Johannes Berg authored and John W. Linville committed Mar 6, 2008
1 parent f5205f7 commit 487721c
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 902acc7896d7649fb30e4b22bd4e643c7f34b02c
refs/heads/master: dc0b0f7d1e34b797b98e4d16122b3ea6f775154c
5 changes: 4 additions & 1 deletion trunk/net/mac80211/mesh_hwmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,10 @@ static u32 hwmp_route_info_get(struct net_device *dev,

rcu_read_lock();
sta = sta_info_get(local, mgmt->sa);
if (!sta)
if (!sta) {
rcu_read_unlock();
return 0;
}

last_hop_metric = airtime_link_metric_get(local, sta);
/* Update and check originator routing info */
Expand Down Expand Up @@ -293,6 +295,7 @@ static u32 hwmp_route_info_get(struct net_device *dev,
break;
default:
sta_info_put(sta);
rcu_read_unlock();
return 0;
}
new_metric = orig_metric + last_hop_metric;
Expand Down

0 comments on commit 487721c

Please sign in to comment.