kernel: fix a reference counting bug in overlayfs

Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 37014
This commit is contained in:
Felix Fietkau 2013-06-22 14:00:12 +00:00
parent 0f003be010
commit 3df61e8279
3 changed files with 30 additions and 0 deletions

View file

@ -0,0 +1,10 @@
--- a/fs/overlayfs/super.c
+++ b/fs/overlayfs/super.c
@@ -385,7 +385,6 @@ struct dentry *ovl_lookup(struct inode *
struct file *ovl_path_open(struct path *path, int flags)
{
- path_get(path);
return dentry_open(path, flags, current_cred());
}

View file

@ -0,0 +1,10 @@
--- a/fs/overlayfs/super.c
+++ b/fs/overlayfs/super.c
@@ -385,7 +385,6 @@ struct dentry *ovl_lookup(struct inode *
struct file *ovl_path_open(struct path *path, int flags)
{
- path_get(path);
return dentry_open(path, flags, current_cred());
}

View file

@ -0,0 +1,10 @@
--- a/fs/overlayfs/super.c
+++ b/fs/overlayfs/super.c
@@ -385,7 +385,6 @@ struct dentry *ovl_lookup(struct inode *
struct file *ovl_path_open(struct path *path, int flags)
{
- path_get(path);
return dentry_open(path, flags, current_cred());
}