fec_mpc52xx: fix timestamp filtering
authorStephan Gatzka <stephan@gatzka.org>
Sat, 2 Jun 2012 03:04:06 +0000 (03:04 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 2 Jun 2012 21:09:08 +0000 (17:09 -0400)
skb_defer_rx_timestamp was called with a freshly allocated skb but must
be called with rskb instead.

Signed-off-by: Stephan Gatzka <stephan@gatzka.org>
Cc: stable <stable@vger.kernel.org>
Acked-by: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/fec_mpc52xx.c

index 97f947b3d94af9c6b50811ca1b527b34307735c5..2933d08b036edc437b0e026ed55404fa34c8b4fb 100644 (file)
@@ -437,7 +437,7 @@ static irqreturn_t mpc52xx_fec_rx_interrupt(int irq, void *dev_id)
                length = status & BCOM_FEC_RX_BD_LEN_MASK;
                skb_put(rskb, length - 4);      /* length without CRC32 */
                rskb->protocol = eth_type_trans(rskb, dev);
-               if (!skb_defer_rx_timestamp(skb))
+               if (!skb_defer_rx_timestamp(rskb))
                        netif_rx(rskb);
 
                spin_lock(&priv->lock);