mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 22:40:54 -04:00
netcp: Replace put_page(virt_to_head_page(ptr)) w/ 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
181edb2bfa
commit
7d525c4edf
1 changed files with 1 additions and 1 deletions
|
|
@ -537,7 +537,7 @@ int netcp_unregister_rxhook(struct netcp_intf *netcp_priv, int order,
|
|||
static void netcp_frag_free(bool is_frag, void *ptr)
|
||||
{
|
||||
if (is_frag)
|
||||
put_page(virt_to_head_page(ptr));
|
||||
skb_free_frag(ptr);
|
||||
else
|
||||
kfree(ptr);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue