git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
777fbc3
)
net: moxa: continue loop on skb allocation failure
author
Jonas Jensen
<jonas.jensen@gmail.com>
Mon, 25 Aug 2014 14:22:40 +0000
(16:22 +0200)
committer
David S. Miller
<davem@davemloft.net>
Tue, 26 Aug 2014 00:25:39 +0000
(17:25 -0700)
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 <jonas.jensen@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/moxa/moxart_ether.c
patch
|
blob
|
history
diff --cc
drivers/net/ethernet/moxa/moxart_ether.c
Simple merge