aboutsummaryrefslogtreecommitdiffstats
path: root/fs/freevxfs/vxfs_bmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/freevxfs/vxfs_bmap.c')
-rw-r--r--fs/freevxfs/vxfs_bmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/freevxfs/vxfs_bmap.c b/fs/freevxfs/vxfs_bmap.c
index 2d71128bd8d6..f86fd3cacd5a 100644
--- a/fs/freevxfs/vxfs_bmap.c
+++ b/fs/freevxfs/vxfs_bmap.c
@@ -137,7 +137,7 @@ vxfs_bmap_indir(struct inode *ip, long indir, int size, long block)
137 137
138 bp = sb_bread(ip->i_sb, 138 bp = sb_bread(ip->i_sb,
139 indir + (i / VXFS_TYPED_PER_BLOCK(ip->i_sb))); 139 indir + (i / VXFS_TYPED_PER_BLOCK(ip->i_sb)));
140 if (!buffer_mapped(bp)) 140 if (!bp || !buffer_mapped(bp))
141 return 0; 141 return 0;
142 142
143 typ = ((struct vxfs_typed *)bp->b_data) + 143 typ = ((struct vxfs_typed *)bp->b_data) +