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 [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to