]> Pileus Git - ~andy/linux/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)
commitaa4545806025c63ec12cfe17528de16dca36b785
treea979799e3eb20b97f92483d327ea2f4115fe11af
parent4486ea987efdaa546bdda569e3dfacdc14a9fb13
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