summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/hisilicon
diff options
context:
space:
mode:
authorGao Feng <fgao@ikuai8.com>2016-08-25 03:45:39 +0200
committerDavid S. Miller <davem@davemloft.net>2016-08-26 02:02:48 +0200
commitb628d611a2a53858263fc419dba552f32431dba4 (patch)
treea0f36ccc5eba2cc45525c0bd55c7d72b6a1db79b /drivers/net/ethernet/hisilicon
parenti40e: Change some init flow for the client (diff)
downloadlinux-b628d611a2a53858263fc419dba552f32431dba4.tar.xz
linux-b628d611a2a53858263fc419dba552f32431dba4.zip
8139cp: Fix one possible deadloop in cp_rx_poll
When cp_rx_poll does not get enough packet, it will check the rx interrupt status again. If so, it will jumpt to rx_status_loop again. But the goto jump resets the rx variable as zero too. As a result, it causes one possible deadloop. Assume this case, rx_status_loop only gets the packet count which is less than budget, and (cpr16(IntrStatus) & cp_rx_intr_mask) condition is always true. It causes the deadloop happens and system is blocked. Signed-off-by: Gao Feng <fgao@ikuai8.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/hisilicon')
0 files changed, 0 insertions, 0 deletions