git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
NFSv4: Ensure that we check lock exclusive/shared type against open modes
[pandora-kernel.git]
/
fs
/
nfs
/
callback_proc.c
diff --git
a/fs/nfs/callback_proc.c
b/fs/nfs/callback_proc.c
index
43926ad
..
54cea8a
100644
(file)
--- a/
fs/nfs/callback_proc.c
+++ b/
fs/nfs/callback_proc.c
@@
-339,7
+339,7
@@
validate_seqid(struct nfs4_slot_table *tbl, struct cb_sequenceargs * args)
dprintk("%s enter. slotid %d seqid %d\n",
__func__, args->csa_slotid, args->csa_sequenceid);
dprintk("%s enter. slotid %d seqid %d\n",
__func__, args->csa_slotid, args->csa_sequenceid);
- if (args->csa_slotid > NFS41_BC_MAX_CALLBACKS)
+ if (args->csa_slotid >
=
NFS41_BC_MAX_CALLBACKS)
return htonl(NFS4ERR_BADSLOT);
slot = tbl->slots + args->csa_slotid;
return htonl(NFS4ERR_BADSLOT);
slot = tbl->slots + args->csa_slotid;