Merge tag 'dt' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc
[linux-3.10.git] / drivers / net / ethernet / nxp / lpc_eth.c
index 52deec0..8d2666f 100644 (file)
@@ -1000,10 +1000,10 @@ static int __lpc_handle_recv(struct net_device *ndev, int budget)
                        ndev->stats.rx_errors++;
                } else {
                        /* Packet is good */
-                       skb = dev_alloc_skb(len + 8);
-                       if (!skb)
+                       skb = dev_alloc_skb(len);
+                       if (!skb) {
                                ndev->stats.rx_dropped++;
-                       else {
+                       } else {
                                prdbuf = skb_put(skb, len);
 
                                /* Copy packet from buffer */