summaryrefslogtreecommitdiff
path: root/drivers/net/tap.c
diff options
context:
space:
mode:
authorMaya Erez <merez@codeaurora.org>2018-08-23 14:47:11 +0300
committerKalle Valo <kvalo@codeaurora.org>2018-08-28 16:48:55 +0300
commit84f16fbb62384fb209cd35741d94eb00b5ca2746 (patch)
treec423807f073a70e69770b45aaeccf367a119f09f /drivers/net/tap.c
parentdf2b53884a5a454bf441ca78e5b57307262c73f4 (diff)
wil6210: fix RX buffers release and unmap
RX SKBs are released in both wil6210 rmmod and RX handle. As there is no lock to protect the buffers DMA unmap, the SKB pointer in buff_arr is used to check if the buffer memory was already released. Setting wil->rx_buff_mgmt.buff_arr[buff_id].skb to NULL before the DMA memory unmap will prevent duplicate unmapping of the same memory. Move the buffer ID to the free list also in case the SKB is NULL. Signed-off-by: Maya Erez <merez@codeaurora.org> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/tap.c')
0 files changed, 0 insertions, 0 deletions