Messages in this thread Patch in this message |  | | Date | Tue, 12 Jun 2001 17:06:02 -0700 (PDT) | | From | John Martin <> | | Subject | [PATCH] nfsfh.c |
| |
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/
|  |