From: phil Date: Sun, 4 Apr 2004 20:36:38 +0000 (+0000) Subject: b=3106 X-Git-Tag: 1.2.2~108 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=9448f94969e0db0abf42ae7faa176dd7b2411c43;p=fs%2Flustre-release.git b=3106 Don't deref NULL inode if we make it into filter_lvbo_init for (in this case) the wrong object group --- diff --git a/lustre/obdfilter/filter_lvb.c b/lustre/obdfilter/filter_lvb.c index 4b8413d..a282419 100644 --- a/lustre/obdfilter/filter_lvb.c +++ b/lustre/obdfilter/filter_lvb.c @@ -69,6 +69,9 @@ static int filter_lvbo_init(struct ldlm_resource *res) if (IS_ERR(dentry)) GOTO(out, rc = PTR_ERR(dentry)); + if (dentry->d_inode == NULL) + GOTO(out, rc = -ENOENT); + lvb->lvb_size = dentry->d_inode->i_size; lvb->lvb_mtime = LTIME_S(dentry->d_inode->i_mtime); lvb->lvb_blocks = dentry->d_inode->i_blocks;