]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: clean up mpath_move_to_queue()
authorThomas Pedersen <thomas@cozybit.com>
Fri, 10 Aug 2012 01:15:40 +0000 (18:15 -0700)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 20 Aug 2012 11:25:05 +0000 (13:25 +0200)
commitc9701a748834e06e6e319df6834f909d4da06a52
tree81c3fc65c74c5ba83ef4e23597c99848b7c1f635
parent95d6620dfd0a62ab0d15589b93dfecfd15d15f01
mac80211: clean up mpath_move_to_queue()

Use skb_queue_walk_safe instead, and fix a few issues:

- didn't free old skbs on moving
- didn't react to failed skb alloc
- needlessly held a local pointer to the destination frame queue
- didn't check destination queue length before adding skb

Signed-off-by: Thomas Pedersen <thomas@cozybit.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/mesh.h
net/mac80211/mesh_hwmp.c
net/mac80211/mesh_pathtbl.c