usb: cdc-wdm: Use skb_put_data() instead of skb_put/memcpy pair
[linux-2.6-microblaze.git] / drivers / usb / class / cdc-wdm.c
index eebe782..1f0951b 100644 (file)
@@ -958,7 +958,7 @@ static void wdm_wwan_rx(struct wdm_device *desc, int length)
        if (!skb)
                return;
 
-       memcpy(skb_put(skb, length), desc->inbuf, length);
+       skb_put_data(skb, desc->inbuf, length);
        wwan_port_rx(port, skb);
 
        /* inbuf has been copied, it is safe to check for outstanding data */