mwifiex: fix invalid access of PCIe RxBD ring buffer descriptor
This patch fixes invalid access of RxBD ring buffer descriptor's length and flag inside PCIe send_data_complete() routine. We are supposed to modify TxBD buffer descriptor's length and flag here. Signed-off-by: Avinash Patil <patila@marvell.com> Signed-off-by: Bing Zhao <bzhao@marvell.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
def6452157
commit
6ccea75e70
|
@ -846,8 +846,8 @@ static int mwifiex_pcie_send_data_complete(struct mwifiex_adapter *adapter)
|
|||
|
||||
card->tx_buf_list[wrdoneidx] = NULL;
|
||||
card->txbd_ring[wrdoneidx]->paddr = 0;
|
||||
card->rxbd_ring[wrdoneidx]->len = 0;
|
||||
card->rxbd_ring[wrdoneidx]->flags = 0;
|
||||
card->txbd_ring[wrdoneidx]->len = 0;
|
||||
card->txbd_ring[wrdoneidx]->flags = 0;
|
||||
card->txbd_rdptr++;
|
||||
|
||||
if ((card->txbd_rdptr & MWIFIEX_TXBD_MASK) == num_tx_buffs)
|
||||
|
|
Loading…
Reference in New Issue