Thread (12 messages) flat view 12 messages, 3 authors, 2016-06-15

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() ?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help