diff mbox

davinci: da850/omap-l138: Add Carrier Link OK check in Davinci RX Handler

Message ID 1298627788-32339-1-git-send-email-vinay.hegde@ti.com (mailing list archive)
State Changes Requested
Headers show

Commit Message

Hegde, Vinay Feb. 25, 2011, 9:56 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;
 	}