mac80211: handle station TX latency allocation errors
authorJohannes Berg <johannes.berg@intel.com>
Mon, 6 Jan 2014 14:56:59 +0000 (15:56 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 6 Jan 2014 14:58:10 +0000 (15:58 +0100)
When the station's TX latency data structures need to be
allocated, handle failures properly and also free all the
structures if there are any other problems.

Move the allocation code up so that allocation failures
don't trigger rate control algorithm calls.

Reported-by: ZHAO Gang <gamerh2o@gmail.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/sta_info.c

Simple merge