From: Jesper Juhl Date: Fri, 5 Oct 2012 00:16:52 +0000 (-0700) Subject: taskstats: cgroupstats_user_cmd() may leak on error X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~12^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0324b5a450f8a58304e93c5d886add24ca3527bc;p=pandora-kernel.git 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 Cc: Balbir Singh Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed