diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2007-12-27 01:57:47 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:08:57 -0500 |
commit | 4958730e2b4e10d29aa80574a848308ed95f508f (patch) | |
tree | 8626307bc0df8dcd308eb06e35737ec36106150f | |
parent | 472caf8c8a534367be8954dacf7c9e0317bb7e89 (diff) |
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 <viro@zeniv.linux.org.uk>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | 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 c0591bda0178..7c45ba53f379 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, | |||
10341 | tfd->u.data.chunk_ptr[i] = | 10341 | tfd->u.data.chunk_ptr[i] = |
10342 | cpu_to_le32(pci_map_single | 10342 | cpu_to_le32(pci_map_single |
10343 | (priv->pci_dev, skb->data, | 10343 | (priv->pci_dev, skb->data, |
10344 | tfd->u.data.chunk_len[i], | 10344 | remaining_bytes, |
10345 | PCI_DMA_TODEVICE)); | 10345 | PCI_DMA_TODEVICE)); |
10346 | 10346 | ||
10347 | tfd->u.data.num_chunks = | 10347 | tfd->u.data.num_chunks = |