aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/rt2x00/rt2x00usb.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2x00usb.c')
-rw-r--r--drivers/net/wireless/rt2x00/rt2x00usb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00usb.c b/drivers/net/wireless/rt2x00/rt2x00usb.c
index 4219057d85cb..450043b61773 100644
--- a/drivers/net/wireless/rt2x00/rt2x00usb.c
+++ b/drivers/net/wireless/rt2x00/rt2x00usb.c
@@ -254,7 +254,7 @@ int rt2x00usb_write_tx_data(struct rt2x00_dev *rt2x00dev,
254 skbdesc = get_skb_frame_desc(skb); 254 skbdesc = get_skb_frame_desc(skb);
255 memset(skbdesc, 0, sizeof(*skbdesc)); 255 memset(skbdesc, 0, sizeof(*skbdesc));
256 skbdesc->data = skb->data + queue->desc_size; 256 skbdesc->data = skb->data + queue->desc_size;
257 skbdesc->data_len = queue->data_size; 257 skbdesc->data_len = skb->len - queue->desc_size;
258 skbdesc->desc = skb->data; 258 skbdesc->desc = skb->data;
259 skbdesc->desc_len = queue->desc_size; 259 skbdesc->desc_len = queue->desc_size;
260 skbdesc->entry = entry; 260 skbdesc->entry = entry;