Skip to content

Commit b7ade38

Browse files
vaverinamschuma-ntap
authored andcommitted
sunrpc: fixed rollback in rpc_gssd_dummy_populate()
__rpc_depopulate(gssd_dentry) was lost on error path cc: stable@vger.kernel.org Fixes: commit 4b9a445 ("sunrpc: create a new dummy pipe for gssd to hold open") Signed-off-by: Vasily Averin <vvs@virtuozzo.com> Reviewed-by: Jeff Layton <jlayton@redhat.com> Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
1 parent 7b2182e commit b7ade38

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

net/sunrpc/rpc_pipe.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1317,6 +1317,7 @@ rpc_gssd_dummy_populate(struct dentry *root, struct rpc_pipe *pipe_data)
13171317
q.len = strlen(gssd_dummy_clnt_dir[0].name);
13181318
clnt_dentry = d_hash_and_lookup(gssd_dentry, &q);
13191319
if (!clnt_dentry) {
1320+
__rpc_depopulate(gssd_dentry, gssd_dummy_clnt_dir, 0, 1);
13201321
pipe_dentry = ERR_PTR(-ENOENT);
13211322
goto out;
13221323
}

0 commit comments

Comments
 (0)