From: Johannes Berg Date: Tue, 26 Feb 2008 09:53:57 +0000 (+0100) Subject: mac80211: don't clear next_hop in path reclaim X-Git-Tag: v2.6.26-rc1~1138^2~454^2~59 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=7c8076bd8be3fd2a9a94f9687cf39e3505f0e4ec;p=~emulex%2Finfiniband.git mac80211: don't clear next_hop in path reclaim Luis pointed out that this path is going to be freed right away anyway so there's no point in assigning next_hop. Signed-off-by: Johannes Berg Cc: Luis Carlos Cobo Signed-off-by: John W. Linville --- diff --git a/net/mac80211/mesh_pathtbl.c b/net/mac80211/mesh_pathtbl.c index a17f2b29904..ab4d757c453 100644 --- a/net/mac80211/mesh_pathtbl.c +++ b/net/mac80211/mesh_pathtbl.c @@ -301,7 +301,6 @@ static void mesh_path_node_reclaim(struct rcu_head *rp) struct ieee80211_sub_if_data *sdata = IEEE80211_DEV_TO_SUB_IF(node->mpath->dev); - rcu_assign_pointer(node->mpath->next_hop, NULL); atomic_dec(&sdata->u.sta.mpaths); kfree(node->mpath); kfree(node);