Home
last modified time | relevance | path

Searched hist:decabd6650915a9534dad09e967115513be12b24 (Results 1 – 2 of 2) sorted by relevance

/linux/fs/ecryptfs/
H A Dsuper.cdiff decabd6650915a9534dad09e967115513be12b24 Sun Mar 21 03:32:26 CET 2010 Al Viro <viro@zeniv.linux.org.uk> fix a couple of ecryptfs leaks

First of all, get_sb_nodev() grabs anon dev minor and we
never free it in ecryptfs ->kill_sb(). Moreover, on one
of the failure exits in ecryptfs_get_sb() we leak things -
it happens before we set ->s_root and ->put_super() won't
be called in that case. Solution: kill ->put_super(), do
all that stuff in ->kill_sb(). And use kill_anon_sb() instead
of generic_shutdown_super() to deal with anon dev leak.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
H A Dmain.cdiff decabd6650915a9534dad09e967115513be12b24 Sun Mar 21 03:32:26 CET 2010 Al Viro <viro@zeniv.linux.org.uk> fix a couple of ecryptfs leaks

First of all, get_sb_nodev() grabs anon dev minor and we
never free it in ecryptfs ->kill_sb(). Moreover, on one
of the failure exits in ecryptfs_get_sb() we leak things -
it happens before we set ->s_root and ->put_super() won't
be called in that case. Solution: kill ->put_super(), do
all that stuff in ->kill_sb(). And use kill_anon_sb() instead
of generic_shutdown_super() to deal with anon dev leak.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>