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)
commitef04a29737dd08352fdf6431d119ca636d664efe
treee8d8b9490f6d1f06ba4d8b900af0008a1db8656c
parent4cd3c4ecfcbf07fe58ce7de4de61cf85ddc10e78
mac80211: handle station TX latency allocation errors

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