Skip to content

Commit 7c8076b

Browse files
jmberglinvjw
authored andcommitted
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 <johannes@sipsolutions.net> Cc: Luis Carlos Cobo <luisca@cozybit.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
1 parent 44213b5 commit 7c8076b

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

‎net/mac80211/mesh_pathtbl.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,6 @@ static void mesh_path_node_reclaim(struct rcu_head *rp)
301301
struct ieee80211_sub_if_data *sdata =
302302
IEEE80211_DEV_TO_SUB_IF(node->mpath->dev);
303303

304-
rcu_assign_pointer(node->mpath->next_hop, NULL);
305304
atomic_dec(&sdata->u.sta.mpaths);
306305
kfree(node->mpath);
307306
kfree(node);

0 commit comments

Comments
 (0)