fix a vfs api bug in squashfs triggered by zabbix-agent (#4365)
[openwrt/staging/florian.git] / target / linux / generic-2.6 / patches-2.6.26 / 008-squashfs_vfs_super.patch
1 --- a/fs/squashfs/inode.c
2 +++ b/fs/squashfs/inode.c
3 @@ -1179,7 +1179,7 @@ failure:
4
5 static int squashfs_statfs(struct dentry *dentry, struct kstatfs *buf)
6 {
7 - struct squashfs_sb_info *msblk = dentry->d_inode->i_sb->s_fs_info;
8 + struct squashfs_sb_info *msblk = dentry->d_sb->s_fs_info;
9 struct squashfs_super_block *sblk = &msblk->sblk;
10
11 TRACE("Entered squashfs_statfs\n");