]> Git Repo - linux.git/blobdiff - drivers/net/wireless/rt2x00/rt2500usb.c
rt2x00: Fix double usage of skb->cb in USB RX path.
[linux.git] / drivers / net / wireless / rt2x00 / rt2500usb.c
index 1bfb68a920a81ee9af8655638770538202edf35a..9851cefaabf3eadf315afba9a80b90ed193eb01d 100644 (file)
@@ -1156,14 +1156,10 @@ static void rt2500usb_fill_rxdone(struct queue_entry *entry,
        u32 word1;
 
        /*
-        * Copy descriptor to the skb->cb array, this has 2 benefits:
-        * 1) Each descriptor word is 4 byte aligned.
-        * 2) Descriptor is safe  from moving of frame data in rt2x00usb.
+        * Copy descriptor to the skbdesc->desc buffer, making it safe from moving of
+        * frame data in rt2x00usb.
         */
-       skbdesc->desc_len =
-           min_t(u16, entry->queue->desc_size, sizeof(entry->skb->cb));
-       memcpy(entry->skb->cb, rxd, skbdesc->desc_len);
-       skbdesc->desc = entry->skb->cb;
+       memcpy(skbdesc->desc, rxd, skbdesc->desc_len);
        rxd = (__le32 *)skbdesc->desc;
 
        /*
This page took 0.03194 seconds and 4 git commands to generate.