kernel: add a patch for union mounts in 2.6.31
[openwrt-10.03/.git] / target / linux / generic-2.6 / patches-2.6.31 / 231-union_mounts_bind_fix.patch
diff --git a/target/linux/generic-2.6/patches-2.6.31/231-union_mounts_bind_fix.patch b/target/linux/generic-2.6/patches-2.6.31/231-union_mounts_bind_fix.patch
new file mode 100644 (file)
index 0000000..9a7cae6
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/fs/namespace.c
++++ b/fs/namespace.c
+@@ -1550,7 +1550,7 @@
+       if (!mnt)
+               goto out;
+-      err = check_union_mnt(&old_path, mnt, mnt_flags);
++      err = check_union_mnt(path, mnt, mnt_flags);
+       if (err)
+               goto out;