kernel: fix a reference counting bug in overlayfs

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

SVN-Revision: 37014
master
Felix Fietkau 11 years ago
parent 0f003be010
commit 3df61e8279
  1. 10
      target/linux/generic/patches-3.10/101-overlayfs_path_ref.patch
  2. 10
      target/linux/generic/patches-3.8/101-overlayfs_path_ref.patch
  3. 10
      target/linux/generic/patches-3.9/101-overlayfs_path_ref.patch

@ -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());
}

@ -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());
}

@ -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());
}
Loading…
Cancel
Save