brcmfmac: fix use of dev_kfree_skb() in irq context
authorArend van Spriel <arend@broadcom.com>
Thu, 30 Aug 2012 08:05:34 +0000 (10:05 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 5 Sep 2012 18:53:33 +0000 (14:53 -0400)
commit01e3331b30b48fe96d016435707af050700c8421
tree2b05e46d7fb735634cfd96de2c142a3fc39c6830
parent5d9b6f263995d7f43202d76cf2e23d43f9240a90
brcmfmac: fix use of dev_kfree_skb() in irq context

The USB part of the brcmfmac did a dev_kfree_skb() that resulted
in a warning in net/core/skbuff.c:

Jul 11 04:53:33 lb-bun-10 kernel: [53282.667745] WARNING: at
net/core/skbuff.c:490 skb_release_head_state+0xcc/0xe0()

The brcmutil modules provides brcmu_pkt_buf_free_skb() which takes
the context into account. This patch makes use of this function
instead of dev_kfree_skb().

Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com>
Reviewed-by: Hante Meuleman <meuleman@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/brcm80211/brcmfmac/usb.c