Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
45bc0dce
Commit
45bc0dce
authored
Jan 08, 2013
by
Trond Myklebust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SUNRPC: Fix an RCU dereference in xprt_reserve
Signed-off-by:
Trond Myklebust
<
Trond.Myklebust@netapp.com
>
parent
6a24dfb6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
net/sunrpc/xprt.c
net/sunrpc/xprt.c
+4
-1
No files found.
net/sunrpc/xprt.c
View file @
45bc0dce
...
...
@@ -1093,7 +1093,7 @@ EXPORT_SYMBOL_GPL(xprt_free);
*/
void
xprt_reserve
(
struct
rpc_task
*
task
)
{
struct
rpc_xprt
*
xprt
=
task
->
tk_xprt
;
struct
rpc_xprt
*
xprt
;
task
->
tk_status
=
0
;
if
(
task
->
tk_rqstp
!=
NULL
)
...
...
@@ -1101,7 +1101,10 @@ void xprt_reserve(struct rpc_task *task)
task
->
tk_timeout
=
0
;
task
->
tk_status
=
-
EAGAIN
;
rcu_read_lock
();
xprt
=
rcu_dereference
(
task
->
tk_client
->
cl_xprt
);
xprt
->
ops
->
alloc_slot
(
xprt
,
task
);
rcu_read_unlock
();
}
static
inline
__be32
xprt_alloc_xid
(
struct
rpc_xprt
*
xprt
)
...
...
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