From bf847c30b27cf084c36d04490ef3ffe753bb6452 Mon Sep 17 00:00:00 2001 From: pschwan Date: Sat, 22 Jun 2002 22:28:10 +0000 Subject: [PATCH] LBUG() if we get a NULL intent in ll_lookup2 --- lustre/llite/namei.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lustre/llite/namei.c b/lustre/llite/namei.c index bc18121..34bcdcd 100644 --- a/lustre/llite/namei.c +++ b/lustre/llite/namei.c @@ -141,6 +141,11 @@ static struct dentry *ll_lookup2(struct inode * dir, struct dentry *dentry, ENTRY; + if (it == NULL) { + LBUG(); + RETURN(NULL); + } + CDEBUG(D_INFO, "name: %*s, intent op: %d\n", dentry->d_name.len, dentry->d_name.name, it->it_op); -- 1.8.3.1