Skip to content

Commit

Permalink
[XFS] Fix a bad pointer dereference in the quota statvfs handling.
Browse files Browse the repository at this point in the history
SGI-PV: 955993
SGI-Modid: xfs-linux-melb:xfs-kern:26934a

Signed-off-by: Nathan Scott <nathans@sgi.com>
Signed-off-by: David Chatterton <chatz@sgi.com>
  • Loading branch information
Nathan Scott authored and David Chatterton committed Sep 7, 2006
1 parent 0a8d17d commit 0edc7d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/xfs/quota/xfs_qm_bhv.c
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ xfs_qm_statvfs(
if (error || !vnode)
return error;

mp = XFS_BHVTOM(bhv);
mp = xfs_vfstom(bhvtovfs(bhv));
ip = xfs_vtoi(vnode);

if (!(ip->i_d.di_flags & XFS_DIFLAG_PROJINHERIT))
Expand Down

0 comments on commit 0edc7d0

Please sign in to comment.