Re: [PATCH net] net_sched: prio: rollback allocations if prio_init() fails
From: Cong Wang <hidden> Date: 2016-06-13 16:29:09
On Sun, Jun 12, 2016 at 10:03 PM, Eric Dumazet [off-list ref] wrote:
From: Eric Dumazet <edumazet@google.com>
Now prio_init() can return -ENOMEM, it also has to make sure
any allocated qdisc are freed, since the caller (qdisc_create()) wont
call ->destroy() handler for us.
But prio_tune() is called by ->change() too, so just call prio_destroy()
inside prio_tune() ?