Thread (6 messages) flat view 6 messages, 2 authors, 2018-01-16

Re: [PATCH net-next] net: sched: fix use before alloc of per cpu stats

From: Cong Wang <hidden>
Date: 2018-01-16 06:43:46

On Mon, Jan 15, 2018 at 10:33 PM, Prashant Bhole
[off-list ref] wrote:
Pardon my ignorance, I think it is necessary to forward d59f5ffa59d8 to
-net. Because previously flags were set during init and checked after init
to allocate memory. static_flags makes the flags available before init,
hence we can allocate memory before init.
Oh, right, but we can allocate it unconditionally and free it if not needed
after ->init(). It is not prettier though. ;)
Sorry, but from your reply I couldn't understand whether we need v2 for
net-next.
I don't think you need to send v2, because the one for -net will be merged
(with a conflict) into -net-next by DaveM.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help