summaryrefslogtreecommitdiff
path: root/target
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
commit9c078b1a46b70ca50d599c51c750f4047e2f558b (patch)
tree86dd75bf32e9979f986d6273696f9770d3505cdc /target
parentde0332f86a7d2017246a6c78ddad480005912e59 (diff)
downloadmtk-20170518-9c078b1a46b70ca50d599c51c750f4047e2f558b.zip
mtk-20170518-9c078b1a46b70ca50d599c51c750f4047e2f558b.tar.gz
mtk-20170518-9c078b1a46b70ca50d599c51c750f4047e2f558b.tar.bz2
fix a vfs api bug in squashfs triggered by zabbix-agent (#4365)
SVN-Revision: 15098
Diffstat (limited to 'target')
-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 0000000..f1dc2d7
--- /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 0000000..f1dc2d7
--- /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 0000000..f1dc2d7
--- /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");