Thread (3 messages) flat view 3 messages, 2 authors, 2016-11-03

Re: [Patch net] genetlink: fix a memory leak on error path

From: David Miller <davem@davemloft.net>
Date: 2016-11-03 20:53:59

From: Cong Wang <redacted>
Date: Thu,  3 Nov 2016 09:42:35 -0700
In __genl_register_family(), when genl_validate_assign_mc_groups()
fails, we forget to free the memory we possibly allocate for
family->attrbuf.

Note, some callers call genl_unregister_family() to clean up
on error path, it doesn't work because the family is inserted
to the global list in the nearly last step.

Cc: Jakub Kicinski <redacted>
Cc: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Cong Wang <redacted>
Applied, thanks Cong.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help