]> git.baikalelectronics.ru Git - kernel.git/commit
eCryptfs: fix error handling in ecryptfs_init
authorRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Fri, 10 Aug 2007 20:00:56 +0000 (13:00 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Sat, 11 Aug 2007 22:47:40 +0000 (15:47 -0700)
commite15afa571ba46c5283738b326df78ec37095130f
tree9fc97f1b35300ca40463b74ac965e7580d61af70
parent5d6ff270fac1746c530601bca9fb6772fc1cbc0f
eCryptfs: fix error handling in ecryptfs_init

ecryptfs_init() exits without doing any cleanup jobs if
ecryptfs_init_messaging() fails.  In that case, eCryptfs leaves
sysfs entries, leaks memory, and causes an invalid page fault.
This patch fixes the problem.

Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Acked-by: Michael Halcrow <mhalcrow@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/ecryptfs/main.c