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:
mentor 2008-05-10 06:58:20 +00:00
parent b9be39d736
commit 30aec0e604

View File

@ -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. */
ds->ds_link = (tskb->next == NULL) ?
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,
tskb->len, /* Segment length */