Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=4958730e2b4e10d29aa80574a848308ed95f508f
Commit:     4958730e2b4e10d29aa80574a848308ed95f508f
Parent:     472caf8c8a534367be8954dacf7c9e0317bb7e89
Author:     Al Viro <[EMAIL PROTECTED]>
AuthorDate: Thu Dec 27 01:57:47 2007 -0500
Committer:  David S. Miller <[EMAIL PROTECTED]>
CommitDate: Mon Jan 28 15:08:57 2008 -0800

    ipw2200: ipw_tx_skb() endianness bug
    
    We'd just set tfd->u.data.chunk_len[i] to cpu_to_le16(remaining_bytes);
    passing it to pci_map_single() is a bad idea - it expects host-endian.
    
    Signed-off-by: Al Viro <[EMAIL PROTECTED]>
    Signed-off-by: John W. Linville <[EMAIL PROTECTED]>
---
 drivers/net/wireless/ipw2200.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/net/wireless/ipw2200.c b/drivers/net/wireless/ipw2200.c
index c0591bd..7c45ba5 100644
--- a/drivers/net/wireless/ipw2200.c
+++ b/drivers/net/wireless/ipw2200.c
@@ -10341,7 +10341,7 @@ static int ipw_tx_skb(struct ipw_priv *priv, struct 
ieee80211_txb *txb,
                        tfd->u.data.chunk_ptr[i] =
                            cpu_to_le32(pci_map_single
                                        (priv->pci_dev, skb->data,
-                                        tfd->u.data.chunk_len[i],
+                                        remaining_bytes,
                                         PCI_DMA_TODEVICE));
 
                        tfd->u.data.num_chunks =
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to