From: Toshiharu Okada Date: Sun, 25 Sep 2011 21:27:42 +0000 (+0000) Subject: pch_gbe: Fixed the issue on which PC was frozen when link was downed. X-Git-Tag: firefly_0821_release~7541^2~1173 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=5a9ee1d0c2e22346a7eccebbbd0a1f1db26c7f7e;p=firefly-linux-kernel-4.4.55.git 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 Signed-off-by: David S. Miller Signed-off-by: Tomoya MORINAGA --- diff --git a/drivers/net/pch_gbe/pch_gbe_main.c b/drivers/net/pch_gbe/pch_gbe_main.c index d6d9c0b2d9b3..59a1ef5fed7f 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) /* If no Tx and not enough Rx work done, * exit the polling mode */ - if ((work_done < budget) || !netif_running(netdev)) + if (work_done < budget) poll_end_flag = true; }