Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
96165e2b
Commit
96165e2b
authored
Oct 03, 2008
by
Trond Myklebust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SUNRPC: Fix a memory leak in rpcb_getport_async
Signed-off-by:
Trond Myklebust
<
Trond.Myklebust@netapp.com
>
parent
9a4bd29f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
net/sunrpc/rpcb_clnt.c
net/sunrpc/rpcb_clnt.c
+3
-1
No files found.
net/sunrpc/rpcb_clnt.c
View file @
96165e2b
...
...
@@ -580,7 +580,7 @@ void rpcb_getport_async(struct rpc_task *task)
status
=
-
ENOMEM
;
dprintk
(
"RPC: %5u %s: no memory available
\n
"
,
task
->
tk_pid
,
__func__
);
goto
bailout_
nofree
;
goto
bailout_
release_client
;
}
map
->
r_prog
=
clnt
->
cl_prog
;
map
->
r_vers
=
clnt
->
cl_vers
;
...
...
@@ -605,6 +605,8 @@ void rpcb_getport_async(struct rpc_task *task)
rpc_put_task
(
child
);
return
;
bailout_release_client:
rpc_release_client
(
rpcb_clnt
);
bailout_nofree:
rpcb_wake_rpcbind_waiters
(
xprt
,
status
);
task
->
tk_status
=
status
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment