diff options
author | Bob Copeland <me@bobcopeland.com> | 2009-01-10 19:42:54 (GMT) |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-02-11 16:27:16 (GMT) |
commit | fcf6b1bca8cdfefc986909b57277af4628955bd8 (patch) | |
tree | 7a8000cbdeb8deb45f5139d179b2d243586e1321 /Documentation/blockdev | |
parent | 7b7a799d664a46eec6cb7de200c90f40730497a7 (diff) | |
download | linux-fsl-qoriq-fcf6b1bca8cdfefc986909b57277af4628955bd8.tar.xz |
ath5k: fix bf->skb==NULL panic in ath5k_tasklet_rx
Under memory pressure, we may not be able to allocate a new skb for
new packets. If the allocation fails, ath5k_tasklet_rx will exit but
will leave a buffer in the list with a NULL skb, eventually triggering
a BUG_ON.
Extract the skb allocation from ath5k_rxbuf_setup() and change the
tasklet to allocate the next skb before accepting a packet.
Changes-licensed-under: 3-Clause-BSD
Signed-off-by: Bob Copeland <me@bobcopeland.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'Documentation/blockdev')
0 files changed, 0 insertions, 0 deletions