Whamcloud - gitweb
dput() is only needed is alias was returned
authortappro <tappro>
Sun, 3 Sep 2006 20:11:46 +0000 (20:11 +0000)
committertappro <tappro>
Sun, 3 Sep 2006 20:11:46 +0000 (20:11 +0000)
lustre/osd/osd_handler.c

index 86e36f6..24cd390 100644 (file)
@@ -1656,13 +1656,12 @@ static int osd_index_compat_lookup(const struct lu_context *ctxt,
                                                        (struct lu_fid *)rec);
                         else
                                 result = -ENOENT;
-                        d = dentry;
-                } else {
+                 } else {
                         /* What? Disconnected alias? Ppheeeww... */
                         CERROR("Aliasing where not expected\n");
                         result = -EIO;
+                        dput(d);
                 }
-                dput(d);
                 dput(dentry);
         } else
                 result = -ENOMEM;