All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/2] wcn36xx: fix crash because rx skb allocation failure
@ 2015-12-20 13:20 Fengwei Yin
  2015-12-20 13:20 ` [PATCH v3 1/2] wcn36xx: handle rx skb allocation failure to avoid system crash Fengwei Yin
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Fengwei Yin @ 2015-12-20 13:20 UTC (permalink / raw)
  To: julian.calaby, linux-wireless, wcn36xx, me, k.eugene.e, bjorn.andersson
  Cc: fengwei.yin, lking

The current wcn36xx driver didn't handle rx skb allocation failure case.
It only could be triggered when system is in extremly memory shortage
case. King Lawrence <lking@qti.qualcomm.com> hit it by git clone linux
kernel tree on DragonBoard <1>.

The fixing is not to submit the old rx skb to network upper layer and 
reuse it as rx DMA buffer again.

Changes from v2:
 * Remove the ugly macro introduced in v2 per comment from Julian Calaby.
 * Seperate the DMA int mask register writing as one patch per comment
   from Bjorn Andersson.

Changes from v1:
 * Move switch block out of while loop.
 * Remove the warning of unknown channel because we didn't deal with it.

Fengwei Yin (2):
  wcn36xx: handle rx skb allocation failure to avoid system crash
  wcn36xx: split DMA mask register writing.

 drivers/net/wireless/ath/wcn36xx/dxe.c | 43 +++++++++++++++++-----------------
 1 file changed, 22 insertions(+), 21 deletions(-)

-- 
2.1.4


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-01-07 13:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-20 13:20 [PATCH v3 0/2] wcn36xx: fix crash because rx skb allocation failure Fengwei Yin
2015-12-20 13:20 ` [PATCH v3 1/2] wcn36xx: handle rx skb allocation failure to avoid system crash Fengwei Yin
2015-12-20 13:20 ` [PATCH v3 2/2] wcn36xx: split DMA mask register writing Fengwei Yin
2016-01-07 13:05 ` [PATCH v3 0/2] wcn36xx: fix crash because rx skb allocation failure Kalle Valo
2016-01-07 13:08   ` yfw

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.