[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <02874ECE860811409154E81DA85FBB5884C0E924@ORSMSX115.amr.corp.intel.com>
Date: Tue, 10 Jul 2018 21:22:49 +0000
From: "Keller, Jacob E" <jacob.e.keller@...el.com>
To: Cong Wang <xiyou.wangcong@...il.com>
CC: Linux Kernel Network Developers <netdev@...r.kernel.org>,
Eric Dumazet <edumazet@...gle.com>
Subject: RE: [net] sch_fq_codel: zero q->flows_cnt when fq_codel_init fails
> -----Original Message-----
> From: Cong Wang [mailto:xiyou.wangcong@...il.com]
> Sent: Tuesday, July 10, 2018 1:32 PM
> To: Keller, Jacob E <jacob.e.keller@...el.com>
> Cc: Linux Kernel Network Developers <netdev@...r.kernel.org>; Eric Dumazet
> <edumazet@...gle.com>
> Subject: Re: [net] sch_fq_codel: zero q->flows_cnt when fq_codel_init fails
>
> On Mon, Jul 9, 2018 at 8:37 AM Jacob Keller <jacob.e.keller@...el.com> wrote:
> > +alloc_failure:
> > + kfree(q->flows);
>
> You need to call kvfree() instead.
>
> Other than this,
>
> Acked-by: Cong Wang <xiyou.wangcong@...il.com>
>
> For net-next, I will send a patch to skip ->reset() for ->init() failure
> case, there is no reason to reset queues since qdisc is not even
> activated.
Thanks, I sent a v2.
Regards,
Jake
Powered by blists - more mailing lists