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

Commit f11a869d authored by Ivan Vecera's avatar Ivan Vecera Committed by David S. Miller
Browse files

be2net: take care of __vlan_put_tag return value



The driver should use return value of __vlan_put_tag with appropriate
NULL-check instead of old skb pointer.

Signed-off-by: default avatarIvan Vecera <ivecera@redhat.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent d900d120
Loading
Loading
Loading
Loading
+3 −2
Original line number Original line Diff line number Diff line
@@ -759,7 +759,8 @@ static struct sk_buff *be_insert_vlan_in_pkt(struct be_adapter *adapter,


	if (vlan_tx_tag_present(skb)) {
	if (vlan_tx_tag_present(skb)) {
		vlan_tag = be_get_tx_vlan_tag(adapter, skb);
		vlan_tag = be_get_tx_vlan_tag(adapter, skb);
		__vlan_put_tag(skb, vlan_tag);
		skb = __vlan_put_tag(skb, vlan_tag);
		if (skb)
			skb->vlan_tci = 0;
			skb->vlan_tci = 0;
	}
	}