aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorToshiharu Okada <toshiharu-linux@dsn.okisemi.com>2011-09-25 17:27:42 -0400
committerDavid S. Miller <davem@davemloft.net>2011-10-03 14:20:39 -0400
commit5f3a11419099d5cc010cfbfc524ca10d8fb81f89 (patch)
tree78e6856976b99dcf112355360a55900906bc5f5c /drivers
parent7091fbd82cd5686444ffe9935ed6a8190101fe9d (diff)
pch_gbe: Fixed the issue on which PC was frozen when link was downed.
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>
Diffstat (limited to 'drivers')
-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 567ff10889be..5474189d320b 100644
--- a/drivers/net/pch_gbe/pch_gbe_main.c
+++ b/drivers/net/pch_gbe/pch_gbe_main.c
@@ -2195,7 +2195,7 @@ static int pch_gbe_napi_poll(struct napi_struct *napi, int budget)
2195 /* If no Tx and not enough Rx work done, 2195 /* If no Tx and not enough Rx work done,
2196 * exit the polling mode 2196 * exit the polling mode
2197 */ 2197 */
2198 if ((work_done < budget) || !netif_running(netdev)) 2198 if (work_done < budget)
2199 poll_end_flag = true; 2199 poll_end_flag = true;
2200 } 2200 }
2201 2201