mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-20 21:51:05 +00:00
net: use the new API kvfree()
It is available since v3.15-rc5. Cc: Pablo Neira Ayuso <pablo@netfilter.org> Cc: "David S. Miller" <davem@davemloft.net> Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
9638f6713f
commit
4cb28970a2
11 changed files with 12 additions and 58 deletions
|
@ -1159,10 +1159,7 @@ static void __net_exit tcp_net_metrics_exit(struct net *net)
|
|||
tm = next;
|
||||
}
|
||||
}
|
||||
if (is_vmalloc_addr(net->ipv4.tcp_metrics_hash))
|
||||
vfree(net->ipv4.tcp_metrics_hash);
|
||||
else
|
||||
kfree(net->ipv4.tcp_metrics_hash);
|
||||
kvfree(net->ipv4.tcp_metrics_hash);
|
||||
}
|
||||
|
||||
static __net_initdata struct pernet_operations tcp_net_metrics_ops = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue