]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - glsdk/meta-ti-glsdk.git/blob - recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.2/0023-NFSv4.1-fix-backchannel-slotid-off-by-one-bug.patch
linux-ti33x-psp 3.2: update to 3.2.21, add libertas fixes
[glsdk/meta-ti-glsdk.git] / recipes-kernel / linux / linux-ti33x-psp-3.2 / 3.2.2 / 0023-NFSv4.1-fix-backchannel-slotid-off-by-one-bug.patch
1 From 4d12390d5a9b1c151416e0fbef4702455f4a2626 Mon Sep 17 00:00:00 2001
2 From: Andy Adamson <andros@netapp.com>
3 Date: Wed, 9 Nov 2011 13:58:20 -0500
4 Subject: [PATCH 023/129] NFSv4.1: fix backchannel slotid off-by-one bug
6 commit 61f2e5106582d02f30b6807e3f9c07463c572ccb upstream.
8 Signed-off-by: Andy Adamson <andros@netapp.com>
9 Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
10 Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
11 ---
12  fs/nfs/callback_proc.c |    2 +-
13  1 file changed, 1 insertion(+), 1 deletion(-)
15 diff --git a/fs/nfs/callback_proc.c b/fs/nfs/callback_proc.c
16 index 43926ad..54cea8a 100644
17 --- a/fs/nfs/callback_proc.c
18 +++ b/fs/nfs/callback_proc.c
19 @@ -339,7 +339,7 @@ validate_seqid(struct nfs4_slot_table *tbl, struct cb_sequenceargs * args)
20         dprintk("%s enter. slotid %d seqid %d\n",
21                 __func__, args->csa_slotid, args->csa_sequenceid);
22  
23 -       if (args->csa_slotid > NFS41_BC_MAX_CALLBACKS)
24 +       if (args->csa_slotid >= NFS41_BC_MAX_CALLBACKS)
25                 return htonl(NFS4ERR_BADSLOT);
26  
27         slot = tbl->slots + args->csa_slotid;
28 -- 
29 1.7.9.5