When a link was downed during network use,
there is an issue on which PC freezes.

This patch fixed this issue.

commit 5f3a11419099d5cc010cfbfc524ca10d8fb81f89
kernel 3.0

Cc: [email protected]
Signed-off-by: Toshiharu Okada <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Signed-off-by: Tomoya MORINAGA <[email protected]>
---
 drivers/net/pch_gbe/pch_gbe_main.c |    2 +-
 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 598fb26..a11b7a2 100644
--- a/drivers/net/pch_gbe/pch_gbe_main.c
+++ b/drivers/net/pch_gbe/pch_gbe_main.c
@@ -2201,7 +2201,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;
        }
 
-- 
1.7.7.6

--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to