net: stmmac: selftests: Use kfree_skb() instead of kfree()
authorJose Abreu <Jose.Abreu@synopsys.com>
Wed, 29 May 2019 08:30:26 +0000 (10:30 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 30 May 2019 19:58:54 +0000 (12:58 -0700)
commitaeb4a5e8b350d481dcb082ac9a102e0fea3f4065
tree9de775f748e62f296688dfb02170df660774995d
parent2d135dea53fa7e8c9a20ccbac9857e3b9a926f9f
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>
drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c