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)
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>

No differences found