diff options
author | WANG Cong <xiyou.wangcong@gmail.com> | 2014-06-03 00:55:22 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-06-05 09:49:51 +0200 |
commit | 4cb28970a23ff209199b0a4358d68efe82c8f493 (patch) | |
tree | 6fddc9391d7803318fb0903ffd101dc7837f5a30 /net/sched/sch_fq_codel.c | |
parent | dns_resolver: Do not accept domain names longer than 255 chars (diff) | |
download | linux-4cb28970a23ff209199b0a4358d68efe82c8f493.tar.xz linux-4cb28970a23ff209199b0a4358d68efe82c8f493.zip |
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>
Diffstat (limited to 'net/sched/sch_fq_codel.c')
-rw-r--r-- | net/sched/sch_fq_codel.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/net/sched/sch_fq_codel.c b/net/sched/sch_fq_codel.c index 0bf432c782c1..063b726bf1f8 100644 --- a/net/sched/sch_fq_codel.c +++ b/net/sched/sch_fq_codel.c @@ -365,12 +365,7 @@ static void *fq_codel_zalloc(size_t sz) static void fq_codel_free(void *addr) { - if (addr) { - if (is_vmalloc_addr(addr)) - vfree(addr); - else - kfree(addr); - } + kvfree(addr); } static void fq_codel_destroy(struct Qdisc *sch) |