aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorToshiharu Okada <toshiharu-linux@dsn.okisemi.com>2011-09-25 17:27:42 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-05-21 12:40:06 -0400
commit5a9ee1d0c2e22346a7eccebbbd0a1f1db26c7f7e (patch)
tree85a69571f211f389e8c1f025f5f012fb59f31e5d
parent7814e8ef7e4c7affe33e975075df09f8a7812250 (diff)
pch_gbe: Fixed the issue on which PC was frozen when link was downed.
commit 5f3a11419099d5cc010cfbfc524ca10d8fb81f89 upstream. When a link was downed during network use, there is an issue on which PC freezes. This patch fixed this issue. Signed-off-by: Toshiharu Okada <toshiharu-linux@dsn.okisemi.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Tomoya MORINAGA <tomoya.rohm@gmail.com>
-rw-r--r--drivers/net/pch_gbe/pch_gbe_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/pch_gbe/pch_gbe_main.c b/drivers/net/pch_gbe/pch_gbe_main.c
index d6d9c0b2d9b..59a1ef5fed7 100644
--- a/drivers/net/pch_gbe/pch_gbe_main.c
+++ b/drivers/net/pch_gbe/pch_gbe_main.c
@@ -2128,7 +2128,7 @@ static int pch_gbe_napi_poll(struct napi_struct *napi, int budget)
2128 /* If no Tx and not enough Rx work done, 2128 /* If no Tx and not enough Rx work done,
2129 * exit the polling mode 2129 * exit the polling mode
2130 */ 2130 */
2131 if ((work_done < budget) || !netif_running(netdev)) 2131 if (work_done < budget)
2132 poll_end_flag = true; 2132 poll_end_flag = true;
2133 } 2133 }
2134 2134