Whamcloud - gitweb
Revert "LU-2800 autoconf: remove LC_PROCFS_USERS test"
[fs/lustre-release.git] / lustre / lov / lproc_lov.c
index 850bb39..1c5839c 100644 (file)
@@ -252,10 +252,12 @@ static int lov_target_seq_open(struct inode *inode, struct file *file)
         struct seq_file *seq;
         int rc;
 
-       LPROCFS_ENTRY_CHECK(dp);
+        LPROCFS_ENTRY_AND_CHECK(dp);
         rc = seq_open(file, &lov_tgt_sops);
-       if (rc)
+        if (rc) {
+                LPROCFS_EXIT();
                 return rc;
+        }
 
         seq = file->private_data;
         seq->private = dp->data;