diff options
| -rw-r--r-- | drivers/net/ethernet/neterion/s2io.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/ethernet/neterion/s2io.c b/drivers/net/ethernet/neterion/s2io.c index 56e3a9d42bb2..d44fdb91808e 100644 --- a/drivers/net/ethernet/neterion/s2io.c +++ b/drivers/net/ethernet/neterion/s2io.c | |||
| @@ -2914,6 +2914,9 @@ static int rx_intr_handler(struct ring_info *ring_data, int budget) | |||
| 2914 | struct RxD1 *rxdp1; | 2914 | struct RxD1 *rxdp1; |
| 2915 | struct RxD3 *rxdp3; | 2915 | struct RxD3 *rxdp3; |
| 2916 | 2916 | ||
| 2917 | if (budget <= 0) | ||
| 2918 | return napi_pkts; | ||
| 2919 | |||
| 2917 | get_info = ring_data->rx_curr_get_info; | 2920 | get_info = ring_data->rx_curr_get_info; |
| 2918 | get_block = get_info.block_index; | 2921 | get_block = get_info.block_index; |
| 2919 | memcpy(&put_info, &ring_data->rx_curr_put_info, sizeof(put_info)); | 2922 | memcpy(&put_info, &ring_data->rx_curr_put_info, sizeof(put_info)); |
