From: Jonas Jensen Date: Mon, 25 Aug 2014 14:22:40 +0000 (+0200) Subject: net: moxa: continue loop on skb allocation failure X-Git-Tag: fixes-for-v3.18-merge-window~162^2~45 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2b7890e757bc42f963c835521c2657bd16d7b7d6;p=pandora-kernel.git 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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed