diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c index 33dc37c7e1c1b766fa160cd8f972e1318e69dc02..a97b1ea76438ef409c9e167ff654756cd49ed9dd 100644 --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c @@ -114,7 +114,7 @@ static struct sk_buff *stmmac_test_get_udp_skb(struct stmmac_priv *priv, } if (attr->vlan) { - u16 *tag, *proto; + __be16 *tag, *proto; if (!attr->remove_sa) { tag = (void *)ehdr + ETH_HLEN; @@ -617,7 +617,7 @@ static int stmmac_test_flowctrl_validate(struct sk_buff *skb, tpriv->ok = true; complete(&tpriv->comp); out: - kfree(skb); + kfree_skb(skb); return 0; }