From: Bob Copeland Date: Sat, 10 Jan 2009 19:42:54 +0000 (-0500) Subject: ath5k: fix bf->skb==NULL panic in ath5k_tasklet_rx X-Git-Tag: v2.6.30-rc1~662^2~836^2~147 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b6ea03562f04382776ad825624daefe27f5d3f9c;p=pandora-kernel.git 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 Signed-off-by: John W. Linville --- Reading git-diff-tree failed