diff options
Diffstat (limited to 'net/core/dev.c')
| -rw-r--r-- | net/core/dev.c | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/net/core/dev.c b/net/core/dev.c index 07ed21d64f92..01ee854454a8 100644 --- a/net/core/dev.c +++ b/net/core/dev.c @@ -1106,7 +1106,7 @@ static int __dev_alloc_name(struct net *net, const char *name, char *buf)  	 * when the name is long and there isn't enough space left  	 * for the digits, or if all bits are used.  	 */ -	return p ? -ENFILE : -EEXIST; +	return -ENFILE;  }  static int dev_alloc_name_ns(struct net *net, @@ -3904,7 +3904,7 @@ static u32 netif_receive_generic_xdp(struct sk_buff *skb,  				     hroom > 0 ? ALIGN(hroom, NET_SKB_PAD) : 0,  				     troom > 0 ? troom + 128 : 0, GFP_ATOMIC))  			goto do_drop; -		if (troom > 0 && __skb_linearize(skb)) +		if (skb_linearize(skb))  			goto do_drop;  	} |