git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
78d0b11
)
genetlink: fix possible memory leak in genl_family_rcv_msg()
author
Wei Yongjun
<yongjun_wei@trendmicro.com.cn>
Fri, 26 Apr 2013 15:34:16 +0000
(15:34 +0000)
committer
David S. Miller
<davem@davemloft.net>
Sat, 27 Apr 2013 03:25:39 +0000
(23:25 -0400)
'attrbuf' is malloced in genl_family_rcv_msg() when family->maxattr &&
family->parallel_ops, thus should be freed before leaving from the error
handling cases, otherwise it will cause memory leak.
Introduced by commit
def3117493eafd9dfa1f809d861e0031b2cc8a07
(genl: Allow concurrent genl callbacks.)
Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netlink/genetlink.c
patch
|
blob
|
history
diff --cc
net/netlink/genetlink.c
Simple merge