It's possible for __rpc_lookup_create() to return ERR_PTR(-ENOMEM). Found by smatch static checker. regards, dan carpenter Signed-off-by: Dan Carpenter <error27@xxxxxxxxx> --- orig/net/sunrpc/rpc_pipe.c 2009-11-10 22:43:11.000000000 +0200 +++ devel/net/sunrpc/rpc_pipe.c 2009-11-10 22:44:19.000000000 +0200 @@ -587,6 +587,8 @@ struct dentry *dentry; dentry = __rpc_lookup_create(parent, name); + if (IS_ERR(dentry)) + return dentry; if (dentry->d_inode == NULL) return dentry; dput(dentry); -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html