aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/linux-2.6
diff options
context:
space:
mode:
authorDavid Chinner <dgc@sgi.com>2007-06-05 02:24:44 -0400
committerTim Shimmin <tes@chook.melbourne.sgi.com>2007-07-14 01:31:03 -0400
commitb2826136a1fc3ea451bcbb73a75ca50b3231aa8f (patch)
tree32cd3b0a8d1ec64d0b752162581dfff89f71ab95 /fs/xfs/linux-2.6
parente927af90aaa7d75543edbbd9c2810e6963d0443f (diff)
[XFS] Handle null returned from xfs_vtoi() in xfs_setfilesize().
SGI-PV: 965636 SGI-Modid: xfs-linux-melb:xfs-kern:28777a Signed-off-by: David Chinner <dgc@sgi.com> Signed-off-by: Olaf Weber <olaf@sgi.com> Signed-off-by: Tim Shimmin <tes@sgi.com>
Diffstat (limited to 'fs/xfs/linux-2.6')
-rw-r--r--fs/xfs/linux-2.6/xfs_aops.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/xfs/linux-2.6/xfs_aops.c b/fs/xfs/linux-2.6/xfs_aops.c
index 80a321462315..c097e4e69768 100644
--- a/fs/xfs/linux-2.6/xfs_aops.c
+++ b/fs/xfs/linux-2.6/xfs_aops.c
@@ -161,6 +161,8 @@ xfs_setfilesize(
161 xfs_fsize_t bsize; 161 xfs_fsize_t bsize;
162 162
163 ip = xfs_vtoi(ioend->io_vnode); 163 ip = xfs_vtoi(ioend->io_vnode);
164 if (!ip)
165 return;
164 166
165 ASSERT((ip->i_d.di_mode & S_IFMT) == S_IFREG); 167 ASSERT((ip->i_d.di_mode & S_IFMT) == S_IFREG);
166 ASSERT(ioend->io_type != IOMAP_READ); 168 ASSERT(ioend->io_type != IOMAP_READ);