diff options
author | Jonas Jensen <[email protected]> | 2014-08-25 16:22:40 +0200 |
---|---|---|
committer | David S. Miller <[email protected]> | 2014-08-25 17:25:39 -0700 |
commit | 2b7890e757bc42f963c835521c2657bd16d7b7d6 (patch) | |
tree | 329a381b4a657a7964f5b58b0d909ad50537c304 /drivers/net/ethernet/intel/i40evf/i40e_txrx.c | |
parent | 777fbc31447f111a1492c90fae2bc616f836d407 (diff) |
net: moxa: continue loop on skb allocation failure
If netdev_alloc_skb_ip_align() fails, subsequent code will
try to dereference an invalid pointer.
Continue to next descriptor on error.
While we're at it,
1. eliminate the chance of an endless loop, replace the main
loop with while(rx < budget)
2. use napi_complete() and remove the explicit napi_gro_flush()
Signed-off-by: Jonas Jensen <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/i40evf/i40e_txrx.c')
0 files changed, 0 insertions, 0 deletions