From: adilger Date: Mon, 16 Sep 2002 23:17:29 +0000 (+0000) Subject: Should only happen with lctl, but just to be safe... X-Git-Tag: 0.5.8~18 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=e5d86a674b410a9a60d47bfd2facd239eae543da;p=fs%2Flustre-release.git Should only happen with lctl, but just to be safe... --- diff --git a/lustre/obdfilter/filter.c b/lustre/obdfilter/filter.c index b5e2c82..eab4609 100644 --- a/lustre/obdfilter/filter.c +++ b/lustre/obdfilter/filter.c @@ -567,6 +567,11 @@ static int filter_open(struct lustre_handle *conn, struct obdo *oa, if (IS_ERR(dentry)) RETURN(PTR_ERR(dentry)); + if (!dentry->d_inode) { + CERROR("opening non-existent objid "LPX64"\n", oa->o_id); + RETURN(-ENOENT); + } + filter_from_inode(oa, dentry->d_inode, OBD_MD_FLSIZE | OBD_MD_FLBLOCKS | OBD_MD_FLMTIME | OBD_MD_FLCTIME);