diff options
author | Vladimir Kondratiev <qca_vkondrat@qca.qualcomm.com> | 2013-07-11 19:03:38 +0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-07-23 00:54:37 +0400 |
commit | 4d1ac0721aae84eec3c8aa54c7574b14f79863bc (patch) | |
tree | dfe239129bdee59919737f7673a4e7652cd648a8 | |
parent | f988b23f7a5045ec5da627ced75de1c2eb080af8 (diff) | |
download | linux-4d1ac0721aae84eec3c8aa54c7574b14f79863bc.tar.xz |
wil6210: fix wrong index in wil_vring_free
When destroying Rx vring, branch for Rx used wrong Tx descriptor:
while SW context was taken for "head", HW descriptor was, by mistake,
taken from "tail"
Signed-off-by: Vladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/ath/wil6210/txrx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/wil6210/txrx.c b/drivers/net/wireless/ath/wil6210/txrx.c index d240b24e1ccf..8fde73aa6198 100644 --- a/drivers/net/wireless/ath/wil6210/txrx.c +++ b/drivers/net/wireless/ath/wil6210/txrx.c @@ -133,7 +133,7 @@ static void wil_vring_free(struct wil6210_priv *wil, struct vring *vring, } else { /* rx */ struct vring_rx_desc dd, *d = ⅆ volatile struct vring_rx_desc *_d = - &vring->va[vring->swtail].rx; + &vring->va[vring->swhead].rx; *d = *_d; pa = wil_desc_addr(&d->dma.addr); |