]> err.no Git - linux-2.6/commit
ecryptfs: redo dget,mntget on dentry_open failure
authorEric Sandeen <sandeen@redhat.com>
Sat, 22 Dec 2007 22:03:26 +0000 (14:03 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Sun, 23 Dec 2007 20:54:37 +0000 (12:54 -0800)
commit16317ec2e5a85884fea680d24c1b228a5602159f
tree68b24327c001d9f0def6bad8ba7ef0b2522a464c
parentc8161f64ccdcc3ac05c7bbfebc031e7ad5ca6412
ecryptfs: redo dget,mntget on dentry_open failure

Thanks to Jeff Moyer for pointing this out.

If the RDWR dentry_open() in ecryptfs_init_persistent_file fails,
it will do a dput/mntput.  Need to re-take references if we
retry as RDONLY.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Acked-by: Mike Halcrow <mhalcrow@us.ibm.com>
Signed-off-by: Jeff Moyer <jmoyer@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/ecryptfs/main.c