brcm80211:Use proper skb wrapper function in the function brcmf_sdio_txpkt_postp
Quoted 18 lines · Nicholas Krause
This uses the proper skb wrapper function
sk_unlinkin the functionbrcmf_sdio_txpkt_postpto properly protect against concurrent users accessing thisskb_buffpointer orskb_buff_headpointer by locking the spinlock as part of the passed skb_buff_head's definition due to neither this function nor its callers locking this spinlock before callingskb_unlinkin order to avoid possible concurrent access on either of these possibly shared structure pointers.Signed-off-by Nicholas Krause <[email protected]>--- drivers/net/wireless/brcm80211/brcmfmac/sdio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/net/wireless/brcm80211/brcmfmac/sdio.c +0
-0
drivers/net/wireless/brcm80211/brcmfmac/sdio.c brcmf_sdio_txpkt_postp(struct brcmf_sdio *bus, struct sk_buff_head *pktq) · line 2311
Quoted 5 lines
drivers/net/wireless/brcm80211/brcmfmac/sdio.c +1
-1@@ -2308,7 +2308,7 @@ brcmf_sdio_txpkt_postp(struct brcmf_sdio *bus, struct sk_buff_head *pktq) pkt_prev = pkt_next->prev;skb_put (pkt_prev, chop_len); } -__skb_unlink (pkt_next, pktq); +skb_unlink (pkt_next, pktq);
Not sure what issue you are trying to solve here. I am pretty sure I used __skb_unlink here on purpose. To my knowledge there is no concurrency issue so please elaborate. Your commit message seems a bit hypothetical.
Regards,
Arend
Quoted 4 lines
drivers/net/wireless/brcm80211/brcmfmac/sdio.c +0
-0brcmu_pkt_buf_free_skb (pkt_next); }else { hdr = pkt_next->data + bus->tx_hdrlen -SDPCM_SWHDR_LEN ;