From: Xiaochen Wang Date: Wed, 30 Mar 2011 15:27:32 +0000 (+0900) Subject: tomoyo: fix memory leak in tomoyo_commit_ok() X-Git-Tag: v3.0-rc1~309^2~1^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cfc64fd91fabed099a4c3df58559f4b7efe9bcce;p=pandora-kernel.git tomoyo: fix memory leak in tomoyo_commit_ok() When memory used for policy exceeds the quota, tomoyo_memory_ok() return false. In this case, tomoyo_commit_ok() must call kfree() before returning NULL. This bug exists since 2.6.35. Signed-off-by: Xiaochen Wang Acked-by: Tetsuo Handa Signed-off-by: James Morris --- Reading git-diff-tree failed