ath10k: protect src_ring state with ce_lock in tx_sg()
authorMichal Kazior <michal.kazior@tieto.com>
Mon, 26 May 2014 10:02:58 +0000 (12:02 +0200)
committerKalle Valo <kvalo@qca.qualcomm.com>
Tue, 27 May 2014 09:32:02 +0000 (12:32 +0300)
commit7147a13135ee717397969d33a139204dfe793022
tree4eedc3cdbe991c96025e9050c89d3cbc25d36b01
parent4b81d1776092125db98301b0044476478e1e8de2
ath10k: protect src_ring state with ce_lock in tx_sg()

It was possible to read invalid state of CE ring
buffer indexes. This could lead to scatter-gather
transfer failure in mid-way and crash firmware
later by leaving garbage data on the ring.

Reported-By: Avery Pennarun <apenwarr@gmail.com>
Signed-off-by: Michal Kazior <michal.kazior@tieto.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/pci.c