From: tappro Date: Sun, 3 Sep 2006 20:11:46 +0000 (+0000) Subject: dput() is only needed is alias was returned X-Git-Tag: v1_8_0_110~486^2~1026 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=3c019a8e5ac643a78bd0649710f2cf009c6ed049;p=fs%2Flustre-release.git dput() is only needed is alias was returned --- diff --git a/lustre/osd/osd_handler.c b/lustre/osd/osd_handler.c index 86e36f6..24cd390 100644 --- a/lustre/osd/osd_handler.c +++ b/lustre/osd/osd_handler.c @@ -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;