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: [email protected] Fixes: commit 4b9a445 ("sunrpc: create a new dummy pipe for gssd to hold open") Signed-off-by: Vasily Averin <[email protected]> Reviewed-by: Jeff Layton <[email protected]> Signed-off-by: Anna Schumaker <[email protected]>
1 parent 7b2182e commit b7ade38

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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)