aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2009-04-04 09:36:00 +0000
committerFelix Fietkau <nbd@openwrt.org>2009-04-04 09:36:00 +0000
commit423c313c298c312829a7549d67d9a9c63da77a8a (patch)
tree2b343577392f31491ad317bd8c48664de9ed25b9
parentaf309feb5374d4fec6db1f325f56de5686ff15e7 (diff)
downloadmaster-187ad058-423c313c298c312829a7549d67d9a9c63da77a8a.tar.gz
master-187ad058-423c313c298c312829a7549d67d9a9c63da77a8a.tar.bz2
master-187ad058-423c313c298c312829a7549d67d9a9c63da77a8a.zip
fix a vfs api bug in squashfs triggered by zabbix-agent (#4365)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15098 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--target/linux/generic-2.6/patches-2.6.26/008-squashfs_vfs_super.patch11
-rw-r--r--target/linux/generic-2.6/patches-2.6.27/008-squashfs_vfs_super.patch11
-rw-r--r--target/linux/generic-2.6/patches-2.6.28/008-squashfs_vfs_super.patch11
3 files changed, 33 insertions, 0 deletions
diff --git a/target/linux/generic-2.6/patches-2.6.26/008-squashfs_vfs_super.patch b/target/linux/generic-2.6/patches-2.6.26/008-squashfs_vfs_super.patch
new file mode 100644
index 0000000000..f1dc2d7519
--- /dev/null
+++ b/target/linux/generic-2.6/patches-2.6.26/008-squashfs_vfs_super.patch
@@ -0,0 +1,11 @@
+--- a/fs/squashfs/inode.c
++++ b/fs/squashfs/inode.c
+@@ -1179,7 +1179,7 @@ failure:
+
+ static int squashfs_statfs(struct dentry *dentry, struct kstatfs *buf)
+ {
+- struct squashfs_sb_info *msblk = dentry->d_inode->i_sb->s_fs_info;
++ struct squashfs_sb_info *msblk = dentry->d_sb->s_fs_info;
+ struct squashfs_super_block *sblk = &msblk->sblk;
+
+ TRACE("Entered squashfs_statfs\n");
diff --git a/target/linux/generic-2.6/patches-2.6.27/008-squashfs_vfs_super.patch b/target/linux/generic-2.6/patches-2.6.27/008-squashfs_vfs_super.patch
new file mode 100644
index 0000000000..f1dc2d7519
--- /dev/null
+++ b/target/linux/generic-2.6/patches-2.6.27/008-squashfs_vfs_super.patch
@@ -0,0 +1,11 @@
+--- a/fs/squashfs/inode.c
++++ b/fs/squashfs/inode.c
+@@ -1179,7 +1179,7 @@ failure:
+
+ static int squashfs_statfs(struct dentry *dentry, struct kstatfs *buf)
+ {
+- struct squashfs_sb_info *msblk = dentry->d_inode->i_sb->s_fs_info;
++ struct squashfs_sb_info *msblk = dentry->d_sb->s_fs_info;
+ struct squashfs_super_block *sblk = &msblk->sblk;
+
+ TRACE("Entered squashfs_statfs\n");
diff --git a/target/linux/generic-2.6/patches-2.6.28/008-squashfs_vfs_super.patch b/target/linux/generic-2.6/patches-2.6.28/008-squashfs_vfs_super.patch
new file mode 100644
index 0000000000..f1dc2d7519
--- /dev/null
+++ b/target/linux/generic-2.6/patches-2.6.28/008-squashfs_vfs_super.patch
@@ -0,0 +1,11 @@
+--- a/fs/squashfs/inode.c
++++ b/fs/squashfs/inode.c
+@@ -1179,7 +1179,7 @@ failure:
+
+ static int squashfs_statfs(struct dentry *dentry, struct kstatfs *buf)
+ {
+- struct squashfs_sb_info *msblk = dentry->d_inode->i_sb->s_fs_info;
++ struct squashfs_sb_info *msblk = dentry->d_sb->s_fs_info;
+ struct squashfs_super_block *sblk = &msblk->sblk;
+
+ TRACE("Entered squashfs_statfs\n");