Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 42288830 authored by Jiri Pirko's avatar Jiri Pirko Committed by David S. Miller
Browse files

niu: don't count tx error twice in case of headroom realloc fails



Fixes: a3138df9 ("[NIU]: Add Sun Neptune ethernet driver.")
Signed-off-by: default avatarJiri Pirko <jiri@resnulli.us>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 64b892ad
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -6658,10 +6658,8 @@ static netdev_tx_t niu_start_xmit(struct sk_buff *skb,
		struct sk_buff *skb_new;

		skb_new = skb_realloc_headroom(skb, len);
		if (!skb_new) {
			rp->tx_errors++;
		if (!skb_new)
			goto out_drop;
		}
		kfree_skb(skb);
		skb = skb_new;
	} else