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:
322c9ec
)
taskstats: cgroupstats_user_cmd() may leak on error
author
Jesper Juhl
<jj@chaosbits.net>
Fri, 5 Oct 2012 00:16:52 +0000
(17:16 -0700)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Fri, 5 Oct 2012 18:05:31 +0000
(
03:05
+0900)
If prepare_reply() succeeds we have allocated memory for 'rep_skb'. If
nla_reserve() then subsequently fails and returns NULL we fail to release
the memory we allocated, thus causing a leak.
Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Cc: Balbir Singh <bsingharora@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/taskstats.c
patch
|
blob
|
history
diff --cc
kernel/taskstats.c
Simple merge