Skip to content

Commit

Permalink
pch_gbe: Fixed the issue on which PC was frozen when link was downed.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Toshiharu Okada authored and David S. Miller committed Oct 3, 2011
1 parent 7091fbd commit 5f3a114
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/pch_gbe/pch_gbe_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2195,7 +2195,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;
}

Expand Down

0 comments on commit 5f3a114

Please sign in to comment.