diff options
author | Toshiharu Okada <toshiharu-linux@dsn.okisemi.com> | 2011-09-25 21:27:42 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-05-21 09:40:06 -0700 |
commit | 5a9ee1d0c2e22346a7eccebbbd0a1f1db26c7f7e (patch) | |
tree | 85a69571f211f389e8c1f025f5f012fb59f31e5d | |
parent | 7814e8ef7e4c7affe33e975075df09f8a7812250 (diff) | |
download | kernel_samsung_tuna-5a9ee1d0c2e22346a7eccebbbd0a1f1db26c7f7e.zip kernel_samsung_tuna-5a9ee1d0c2e22346a7eccebbbd0a1f1db26c7f7e.tar.gz kernel_samsung_tuna-5a9ee1d0c2e22346a7eccebbbd0a1f1db26c7f7e.tar.bz2 |
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.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 d6d9c0b..59a1ef5 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; } |