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)
commit4bd4c2dd8e734868ae9f0ceb87a6edd27df8f45c
tree81c3fc65c74c5ba83ef4e23597c99848b7c1f635
parentb22bd5221cfe80ee3d345d9deccfd29edf9bafb4
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