summaryrefslogtreecommitdiffstats
path: root/kernel/sysctl.c
diff options
context:
space:
mode:
authorXiaochen Wang2011-03-30 17:27:32 +0200
committerJames Morris2011-03-31 01:25:06 +0200
commitcfc64fd91fabed099a4c3df58559f4b7efe9bcce (patch)
tree6ecc7efb4d61ba9e1ae21a11e50f175961f76cf8 /kernel/sysctl.c
parentMerge branch 'next-queue' into next (diff)
downloadkernel-qcow2-linux-cfc64fd91fabed099a4c3df58559f4b7efe9bcce.tar.gz
kernel-qcow2-linux-cfc64fd91fabed099a4c3df58559f4b7efe9bcce.tar.xz
kernel-qcow2-linux-cfc64fd91fabed099a4c3df58559f4b7efe9bcce.zip
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 <wangxiaochen0@gmail.com> Acked-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> Signed-off-by: James Morris <jmorris@namei.org>
Diffstat (limited to 'kernel/sysctl.c')
0 files changed, 0 insertions, 0 deletions