diff options
author | Jose Abreu <Jose.Abreu@synopsys.com> | 2019-05-29 11:30:26 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-05-30 22:58:54 +0300 |
commit | aeb4a5e8b350d481dcb082ac9a102e0fea3f4065 (patch) | |
tree | 9de775f748e62f296688dfb02170df660774995d /drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c | |
parent | 2d135dea53fa7e8c9a20ccbac9857e3b9a926f9f (diff) | |
download | linux-aeb4a5e8b350d481dcb082ac9a102e0fea3f4065.tar.xz |
net: stmmac: selftests: Use kfree_skb() instead of kfree()
kfree_skb() shall be used instead of kfree(). Fix it.
Fixes: 091810dbded9 ("net: stmmac: Introduce selftests support")
Reported-by: kbuild test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Jose Abreu <joabreu@synopsys.com>
Cc: Joao Pinto <jpinto@synopsys.com>
Cc: David S. Miller <davem@davemloft.net>
Cc: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Cc: Alexandre Torgue <alexandre.torgue@st.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c')
-rw-r--r-- | drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c index 9d9bad5d31bf..a97b1ea76438 100644 --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c @@ -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; } |