[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAM_iQpXRy=cC2vuhju2Jf9=sJ+Yc6DvkzvFEU_DrRonyhW+E9w@mail.gmail.com>
Date: Tue, 27 Jun 2017 09:30:34 -0700
From: Cong Wang <xiyou.wangcong@...il.com>
To: gfree.wind@....163.com
Cc: Jamal Hadi Salim <jhs@...atatu.com>, Jiri Pirko <jiri@...nulli.us>,
David Miller <davem@...emloft.net>,
Linux Kernel Network Developers <netdev@...r.kernel.org>
Subject: Re: [net PATCH] net: sched: Fix one possible panic when no destroy callback
On Mon, Jun 26, 2017 at 6:35 PM, <gfree.wind@....163.com> wrote:
> From: Gao Feng <gfree.wind@....163.com>
>
> When qdisc fail to init, qdisc_create would invoke the destroy callback
> to cleanup. But there is no check if the callback exists really. So it
> would cause the panic if there is no real destroy callback like these
> qdisc codel, pfifo, pfifo_fast, and so on.
>
> Now add one the check for destroy to avoid the possible panic.
>
> Signed-off-by: Gao Feng <gfree.wind@....163.com>
Looks good,
Acked-by: Cong Wang <xiyou.wangcong@...il.com>
This is introduced by commit 87b60cfacf9f17cf71933c6e33b.
Please add proper Fixes tag next time.
Thanks.
Powered by blists - more mailing lists