From 3c019a8e5ac643a78bd0649710f2cf009c6ed049 Mon Sep 17 00:00:00 2001 From: tappro Date: Sun, 3 Sep 2006 20:11:46 +0000 Subject: [PATCH] dput() is only needed is alias was returned --- lustre/osd/osd_handler.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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; -- 1.8.3.1