Commit 9856af8b authored by Aneesh Kumar K.V's avatar Aneesh Kumar K.V Committed by Eric Van Hensbergen
Browse files

fs/9p: Add missing iput in v9fs_vfs_lookup

Make sure we drop inode reference in the error path
Signed-off-by: default avatarAneesh Kumar K.V <>
Signed-off-by: default avatarVenkateswararao Jujjuri <>
Signed-off-by: default avatarEric Van Hensbergen <>
parent f5fc6145
......@@ -1037,7 +1037,7 @@ static struct dentry *v9fs_vfs_lookup(struct inode *dir, struct dentry *dentry,
result = v9fs_fid_add(dentry, fid);
if (result < 0)
goto error;
goto error_iput;
if (v9ses->cache)
......@@ -1048,6 +1048,8 @@ inst_out:
d_add(dentry, inode);
return NULL;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment