public inbox for linux-nfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH Version 4 1/7] NFSv4.1: fix backchannel slotid off-by-one bug
@ 2011-11-09 18:58 andros
  2011-11-09 18:58 ` [PATCH Version 4 2/7] NFSv4.1: cleanup init and reset of session slot tables andros
                   ` (5 more replies)
  0 siblings, 6 replies; 13+ messages in thread
From: andros @ 2011-11-09 18:58 UTC (permalink / raw)
  To: trond.myklebust; +Cc: linux-nfs, Andy Adamson

From: Andy Adamson <andros@netapp.com>

Cc:stable@kernel.org
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 43926ad..54cea8a 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)
 		return htonl(NFS4ERR_BADSLOT);
 
 	slot = tbl->slots + args->csa_slotid;
-- 
1.7.6.4


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

end of thread, other threads:[~2011-12-13 13:41 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-09 18:58 [PATCH Version 4 1/7] NFSv4.1: fix backchannel slotid off-by-one bug andros
2011-11-09 18:58 ` [PATCH Version 4 2/7] NFSv4.1: cleanup init and reset of session slot tables andros
2011-11-09 18:58 ` [PATCH Version 4 3/7] NFSv4.1: change nfs4_free_slot parameters for dynamic slots andros
2011-11-09 18:58 ` [PATCH Version 4 4/7] NFSv4.1: dynamic session slots andros
2011-12-11 13:14   ` Benny Halevy
2011-12-12 16:11     ` Adamson, Andy
2011-12-12 19:59       ` Benny Halevy
2011-12-12 19:21     ` Adamson, Andy
2011-12-12 20:13       ` Benny Halevy
2011-12-13 13:39         ` Adamson, Andy
2011-11-09 18:58 ` [PATCH Version 4 5/7] NFSv4.1: do not drain session on CB_RECALL_SLOT andros
2011-11-09 18:58 ` [PATCH Version 4 6/7] NFSv4.1: rename nfs4_free_slot and nfs4_find_slot andros
2011-11-09 18:58 ` [PATCH Version 4 7/7] NFSv4.1: cleanup comment and debug printk andros

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox