projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
92b40e9
)
NFSv4: Ensure the LOCK call cannot use the delegation stateid
author
Trond Myklebust
<Trond.Myklebust@netapp.com>
Sat, 20 Apr 2013 05:30:53 +0000
(
01:30
-0400)
committer
Trond Myklebust
<Trond.Myklebust@netapp.com>
Sat, 20 Apr 2013 05:39:54 +0000
(
01:39
-0400)
Defensive patch to ensure that we copy the state->open_stateid, which
can never be set to the delegation stateid.
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/nfs4proc.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/nfs/nfs4proc.c
b/fs/nfs/nfs4proc.c
index 39849360f9f6069e1c6f9156f2948c3649149b12..ed01a66dc391ecaace4eab90fccbb666cad7ec05 100644
(file)
--- a/
fs/nfs/nfs4proc.c
+++ b/
fs/nfs/nfs4proc.c
@@
-4793,7
+4793,7
@@
static void nfs4_lock_prepare(struct rpc_task *task, void *calldata)
if (nfs_wait_on_sequence(data->arg.open_seqid, task) != 0) {
goto out_release_lock_seqid;
}
- data->arg.open_stateid = &state->stateid;
+ data->arg.open_stateid = &state->
open_
stateid;
data->arg.new_lock_owner = 1;
data->res.open_seqid = data->arg.open_seqid;
} else