mirror of
https://github.com/proski/madwifi
synced 2024-11-22 14:31:22 +03:00
Off by one error in accessing bf_skbaddrff
Signed-off-by: Przemyslaw Bruski <pbruski@op.pl> git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3623 0192ed92-7a03-0410-a25b-9323aeb14dbd
This commit is contained in:
parent
b9be39d736
commit
30aec0e604
@ -8162,7 +8162,8 @@ ath_tx_start(struct net_device *dev, struct ieee80211_node *ni,
|
|||||||
/* Link to the next, (i + 1)th, desc. if it exists. */
|
/* Link to the next, (i + 1)th, desc. if it exists. */
|
||||||
ds->ds_link = (tskb->next == NULL) ?
|
ds->ds_link = (tskb->next == NULL) ?
|
||||||
0 : bf->bf_daddr + ((i + 1) * sizeof(*ds));
|
0 : bf->bf_daddr + ((i + 1) * sizeof(*ds));
|
||||||
ds->ds_data = (i == 0) ? bf->bf_skbaddr : bf->bf_skbaddrff[i];
|
ds->ds_data = (i == 0) ?
|
||||||
|
bf->bf_skbaddr : bf->bf_skbaddrff[i - 1];
|
||||||
|
|
||||||
ath_hal_filltxdesc(ah, ds,
|
ath_hal_filltxdesc(ah, ds,
|
||||||
tskb->len, /* Segment length */
|
tskb->len, /* Segment length */
|
||||||
|
Loading…
Reference in New Issue
Block a user