Whamcloud - gitweb
LBUG() if we get a NULL intent in ll_lookup2
authorpschwan <pschwan>
Sat, 22 Jun 2002 22:28:10 +0000 (22:28 +0000)
committerpschwan <pschwan>
Sat, 22 Jun 2002 22:28:10 +0000 (22:28 +0000)
lustre/llite/namei.c

index bc18121..34bcdcd 100644 (file)
@@ -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);