lkml.org 
[lkml]   [2001]   [Jun]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
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/

\
 
 \ /
  Last update: 2005-03-22 12:55    [W:0.043 / U:0.280 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site