[PATCH] nfsfh.c

From: John Martin (suntzu@stanford.edu)
Date: Tue Jun 12 2001 - 19:06:02 EST


this seems to be an appropriate place to check this pointer and return an
error code if necessary.
    -john

--- linux/fs/nfsd/nfsfh.c.orig Fri Feb 9 11:29:44 2001
+++ linux/fs/nfsd/nfsfh.c Sun Jun 3 01:23:13 2001
@@ -135,6 +135,9 @@
        struct list_head *lp;
        struct dentry *result;
        inode = iget(sb, ino);
+ if(!inode)
+ return ERR_PTR(-ENOMEM);
+
        if (is_bad_inode(inode)
            || (generation && inode->i_generation != generation)
                ) {

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Jun 15 2001 - 21:00:16 EST