diff mbox

[v2] davinci_emac: Add Carrier Link OK check in Davinci RX Handler

Message ID 1298880920-22715-1-git-send-email-vinay.hegde@ti.com (mailing list archive)
State Accepted
Headers show

Commit Message

Hegde, Vinay Feb. 28, 2011, 8:15 a.m. UTC
None
diff mbox

Patch

diff --git a/drivers/net/davinci_emac.c b/drivers/net/davinci_emac.c
index 2a628d1..7018bfe 100644
--- a/drivers/net/davinci_emac.c
+++ b/drivers/net/davinci_emac.c
@@ -1008,7 +1008,7 @@  static void emac_rx_handler(void *token, int len, int status)
 	int			ret;
 
 	/* free and bail if we are shutting down */
-	if (unlikely(!netif_running(ndev))) {
+	if (unlikely(!netif_running(ndev) || !netif_carrier_ok(ndev))) {
 		dev_kfree_skb_any(skb);
 		return;
 	}