diff options
author | Maya Erez <qca_merez@qca.qualcomm.com> | 2016-08-18 16:52:15 +0300 |
---|---|---|
committer | Kalle Valo <kvalo@qca.qualcomm.com> | 2016-08-19 13:11:23 +0300 |
commit | dc90506f145875b9d88160802cc5fe06a7c79dda (patch) | |
tree | 8efea004c80f8747ecadf612bb93720b7d61dd59 /drivers/net/wireless/ath/wil6210/main.c | |
parent | b0c0e688e523eba14abf21ac246b7dd88f5574fa (diff) | |
download | lwn-dc90506f145875b9d88160802cc5fe06a7c79dda.tar.gz lwn-dc90506f145875b9d88160802cc5fe06a7c79dda.zip |
wil6210: prevent usage of incorrect TX hwtail
txdata->enabled is used in order to determine if the TX vring
is valid. As the data transmit is handled in a different context,
in case txdata->enabled is set before vring->hwtail is updated,
an old or corrupted vring->hwtail can be used.
Protect setting of txdata->enabled and vring->hwtail to prevent a
case where TX vring start handling TX packets before setting
vring->hwtail.
Signed-off-by: Maya Erez <qca_merez@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net/wireless/ath/wil6210/main.c')
0 files changed, 0 insertions, 0 deletions