mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 23:24:22 -04:00
hisilicon: Replace put_page(virt_to_head_page()) with skb_free_frag()
Signed-off-by: Alexander Duyck <alexander.h.duyck@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
6bf93ba89e
commit
edea584578
1 changed files with 1 additions and 1 deletions
|
|
@ -798,7 +798,7 @@ static void hip04_free_ring(struct net_device *ndev, struct device *d)
|
|||
|
||||
for (i = 0; i < RX_DESC_NUM; i++)
|
||||
if (priv->rx_buf[i])
|
||||
put_page(virt_to_head_page(priv->rx_buf[i]));
|
||||
skb_free_frag(priv->rx_buf[i]);
|
||||
|
||||
for (i = 0; i < TX_DESC_NUM; i++)
|
||||
if (priv->tx_skb[i])
|
||||
|
|
|
|||
Loading…
Reference in a new issue