]> 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)
commit4f39c48b36b347a9d3d8ae4bfe2ee2873d633b2c
treea979799e3eb20b97f92483d327ea2f4115fe11af
parent3efb9dcda4e230ea99b53a539fb727ebaf7fa75d
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