linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH (resend) Version 2 3/3] NFSv4.1: fix backchennel bug
@ 2011-10-18  6:39 andros
  2011-11-04 14:31 ` Myklebust, Trond
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: andros @ 2011-10-18  6:39 UTC (permalink / raw)
  To: trond.myklebust; +Cc: linux-nfs, Andy Adamson

From: Andy Adamson <andros@netapp.com>

Slotid's start from 0 which means we check against
NFS41_BC_MAX_CALLBACKS - 1.

Signed-off-by: Andy Adamson <andros@netapp.com>
---
 fs/nfs/callback_proc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/fs/nfs/callback_proc.c b/fs/nfs/callback_proc.c
index 98ff5fc..12bd9d0 100644
--- 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);
 
-	if (args->csa_slotid > NFS41_BC_MAX_CALLBACKS)
+	if (args->csa_slotid > NFS41_BC_MAX_CALLBACKS - 1)
 		return htonl(NFS4ERR_BADSLOT);
 
 	slot = nfs4_lookup_slot_locked(tbl, args->csa_slotid);
-- 
1.7.6.4


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-11-04 14:43 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-18  6:39 [PATCH (resend) Version 2 3/3] NFSv4.1: fix backchennel bug andros
2011-11-04 14:31 ` Myklebust, Trond
2011-11-04 14:34 ` Myklebust, Trond
2011-11-04 14:40 ` Bryan Schumaker
2011-11-04 14:43 ` Jim Rees

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).