patch-2.4.15 linux/drivers/usb/catc.c
Next file: linux/drivers/usb/hid-input.c
Previous file: linux/drivers/usb/bluetooth.c
Back to the patch index
Back to the overall index
- Lines: 9
- Date:
Tue Nov 13 09:19:41 2001
- Orig file:
v2.4.14/linux/drivers/usb/catc.c
- Orig date:
Sun Sep 23 11:41:00 2001
diff -u --recursive --new-file v2.4.14/linux/drivers/usb/catc.c linux/drivers/usb/catc.c
@@ -330,7 +330,7 @@
catc->tx_ptr = (((catc->tx_ptr - 1) >> 6) + 1) << 6;
tx_buf = catc->tx_buf[catc->tx_idx] + catc->tx_ptr;
- *((u16*)tx_buf) = cpu_to_le16p(&skb->len);
+ *((u16*)tx_buf) = cpu_to_le16((u16)skb->len);
memcpy(tx_buf + 2, skb->data, skb->len);
catc->tx_ptr += skb->len + 2;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)