Searched hist:"0324 b5a450f8a58304e93c5d886add24ca3527bc" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/kernel/ |
H A D | taskstats.c | diff 0324b5a450f8a58304e93c5d886add24ca3527bc Thu Oct 04 19:16:52 CDT 2012 Jesper Juhl <jj@chaosbits.net> taskstats: cgroupstats_user_cmd() may leak on error
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>
|