Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=b2826136a1fc3ea451bcbb73a75ca50b3231aa8f
Commit:     b2826136a1fc3ea451bcbb73a75ca50b3231aa8f
Parent:     e927af90aaa7d75543edbbd9c2810e6963d0443f
Author:     David Chinner <[EMAIL PROTECTED]>
AuthorDate: Tue Jun 5 16:24:44 2007 +1000
Committer:  Tim Shimmin <[EMAIL PROTECTED]>
CommitDate: Sat Jul 14 15:31:03 2007 +1000

    [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 <[EMAIL PROTECTED]>
    Signed-off-by: Olaf Weber <[EMAIL PROTECTED]>
    Signed-off-by: Tim Shimmin <[EMAIL PROTECTED]>
---
 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 80a3214..c097e4e 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);
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to