Subject: Re: [PATCH net-next 02/10] vxlan: handle skb_clone failure

From: Cong Wang <[email-masked]>
Date: Wed, 5 Jun 2013 06:59:56 +0000 (UTC)

On Wed, 05 Jun 2013 at 04:24 GMT, Stephen Hemminger <[email-masked]> wrote:
>  		skb1 = skb_clone(skb, GFP_ATOMIC);
> -		rc1 = vxlan_xmit_one(skb1, dev, rdst, did_rsc);
> -		if (rc == NETDEV_TX_OK)
> -			rc = rc1;
> +		if (skb1) {
> +			rc1 = vxlan_xmit_one(skb1, dev, rdst, did_rsc);
> +			if (rc == NETDEV_TX_OK)
> +				rc = rc1;
> +		}

If OOM, shouldn't we exit immediately instead of continue handle the
next one?