Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 46068
b: refs/heads/master
c: 54cc533
h: refs/heads/master
v: v3
  • Loading branch information
Trond Myklebust authored and Trond Myklebust committed Feb 3, 2007
1 parent 417e8c7 commit 1368cc2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a995e9eb3258df6ab2e9f958e08003978e50d568
refs/heads/master: 54cc533aaa0dc331ad126f0aacfb19572adee638
8 changes: 5 additions & 3 deletions trunk/net/sunrpc/pmap_clnt.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,10 @@ static inline void pmap_map_free(struct portmap_args *map)

static void pmap_map_release(void *data)
{
pmap_map_free(data);
struct portmap_args *map = data;

xprt_put(map->pm_xprt);
pmap_map_free(map);
}

static const struct rpc_call_ops pmap_getport_ops = {
Expand Down Expand Up @@ -133,7 +136,7 @@ void rpc_getport(struct rpc_task *task)
status = -EIO;
child = rpc_run_task(pmap_clnt, RPC_TASK_ASYNC, &pmap_getport_ops, map);
if (IS_ERR(child))
goto bailout;
goto bailout_nofree;
rpc_put_task(child);

task->tk_xprt->stat.bind_count++;
Expand Down Expand Up @@ -222,7 +225,6 @@ static void pmap_getport_done(struct rpc_task *child, void *data)
child->tk_pid, status, map->pm_port);

pmap_wake_portmap_waiters(xprt, status);
xprt_put(xprt);
}

/**
Expand Down

0 comments on commit 1368cc2

Please sign in to comment.