]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - net/ipv4/tcp_metrics.c
net: use the new API kvfree()
[mirror_ubuntu-bionic-kernel.git] / net / ipv4 / tcp_metrics.c
index dcaf72f10216c22f00ef918963d260d4ce472b99..4fe04180598969e653a01db2c459edd2c8d8acce 100644 (file)
@@ -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 = {