diff options
author | David Chinner <dgc@sgi.com> | 2007-06-05 08:24:44 +0200 |
---|---|---|
committer | Tim Shimmin <tes@chook.melbourne.sgi.com> | 2007-07-14 07:31:03 +0200 |
commit | b2826136a1fc3ea451bcbb73a75ca50b3231aa8f (patch) | |
tree | 32cd3b0a8d1ec64d0b752162581dfff89f71ab95 /fs/xfs | |
parent | [XFS] Block on unwritten extent conversion during synchronous direct I/O. (diff) | |
download | linux-b2826136a1fc3ea451bcbb73a75ca50b3231aa8f.tar.xz linux-b2826136a1fc3ea451bcbb73a75ca50b3231aa8f.zip |
[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')
-rw-r--r-- | fs/xfs/linux-2.6/xfs_aops.c | 2 |
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( xfs_fsize_t bsize; ip = xfs_vtoi(ioend->io_vnode); + if (!ip) + return; ASSERT((ip->i_d.di_mode & S_IFMT) == S_IFREG); ASSERT(ioend->io_type != IOMAP_READ); |