You need to sign in or sign up before continuing.
提交 4958730e 编写于 作者: A Al Viro 提交者: David S. Miller

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: NAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 472caf8c
...@@ -10341,7 +10341,7 @@ static int ipw_tx_skb(struct ipw_priv *priv, struct ieee80211_txb *txb, ...@@ -10341,7 +10341,7 @@ static int ipw_tx_skb(struct ipw_priv *priv, struct ieee80211_txb *txb,
tfd->u.data.chunk_ptr[i] = tfd->u.data.chunk_ptr[i] =
cpu_to_le32(pci_map_single cpu_to_le32(pci_map_single
(priv->pci_dev, skb->data, (priv->pci_dev, skb->data,
tfd->u.data.chunk_len[i], remaining_bytes,
PCI_DMA_TODEVICE)); PCI_DMA_TODEVICE));
tfd->u.data.num_chunks = tfd->u.data.num_chunks =
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册