summaryrefslogtreecommitdiffstats
path: root/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.2/0023-NFSv4.1-fix-backchannel-slotid-off-by-one-bug.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.2/0023-NFSv4.1-fix-backchannel-slotid-off-by-one-bug.patch')
-rw-r--r--recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.2/0023-NFSv4.1-fix-backchannel-slotid-off-by-one-bug.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.2/0023-NFSv4.1-fix-backchannel-slotid-off-by-one-bug.patch b/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.2/0023-NFSv4.1-fix-backchannel-slotid-off-by-one-bug.patch
new file mode 100644
index 00000000..62c5b45c
--- /dev/null
+++ b/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.2/0023-NFSv4.1-fix-backchannel-slotid-off-by-one-bug.patch
@@ -0,0 +1,30 @@
1From a4d5a638ff204626f6244b3a316cf8f01ef3e2fa Mon Sep 17 00:00:00 2001
2From: Andy Adamson <andros@netapp.com>
3Date: Wed, 9 Nov 2011 13:58:20 -0500
4Subject: [PATCH 023/130] NFSv4.1: fix backchannel slotid off-by-one bug
5
6commit 61f2e5106582d02f30b6807e3f9c07463c572ccb upstream.
7
8Signed-off-by: Andy Adamson <andros@netapp.com>
9Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
10Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
11---
12 fs/nfs/callback_proc.c | 2 +-
13 1 files changed, 1 insertions(+), 1 deletions(-)
14
15diff --git a/fs/nfs/callback_proc.c b/fs/nfs/callback_proc.c
16index 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--
291.7.7.4
30