]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: Limit TID buffering during BA session setup/teardown
authorHelmut Schaa <helmut.schaa@googlemail.com>
Wed, 7 Mar 2012 16:20:30 +0000 (17:20 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 12 Mar 2012 18:19:35 +0000 (14:19 -0400)
commit6b66abaf86e78967cfff651b56fc387dc5e8e022
treea979799e3eb20b97f92483d327ea2f4115fe11af
parent9ff12f9180ce11c2573e88b4a42411518d577181
mac80211: Limit TID buffering during BA session setup/teardown

While setting up or tearing down a BA session mac80211 is buffering
pending frames for the according TID. However, there's currently no
limit on how many frames are buffered possibly leading to an out-of-
memory situation. This can happen on systems with little memory when
the CPU is fully loaded since the BA session work is executed in
process context while frames can still come via softirq.

Apply a limitation to the TIDs pending queue to avoid consuming
too much memory in this situation.

Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/tx.c