[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20111102222741.573857486@clark.kroah.org>
Date: Wed, 02 Nov 2011 15:26:05 -0700
From: Greg KH <gregkh@...e.de>
To: linux-kernel@...r.kernel.org, stable@...r.kernel.org
Cc: torvalds@...ux-foundation.org, akpm@...ux-foundation.org,
alan@...rguk.ukuu.org.uk,
=?ISO-8859-15?q?Venkateswararao=20Jujjuri=20@...e.de,
"?= <jvrao@...ux.vnet.ibm.com>, "@suse.de, Aneesh@...e.de,
Kumar@...e.de, K.V@...e.de,
" <aneesh.kumar@...ux.vnet.ibm.com>, Eric Van Hensbergen <ericvh@...il.com>"@suse.de
Subject: [021/101] net/9p: Fix the msize calculation.
2.6.33-longterm review patch. If anyone has any objections, please let us know.
------------------
From: "Venkateswararao Jujjuri (JV)" <jvrao@...ux.vnet.ibm.com>
commit c9ffb05ca5b5098d6ea468c909dd384d90da7d54 upstream.
msize represents the maximum PDU size that includes P9_IOHDRSZ.
Signed-off-by: Venkateswararao Jujjuri "<jvrao@...ux.vnet.ibm.com>
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@...ux.vnet.ibm.com>
Signed-off-by: Eric Van Hensbergen <ericvh@...il.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@...e.de>
---
net/9p/client.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--- a/net/9p/client.c
+++ b/net/9p/client.c
@@ -708,8 +708,8 @@ struct p9_client *p9_client_create(const
if (err)
goto destroy_fidpool;
- if ((clnt->msize+P9_IOHDRSZ) > clnt->trans_mod->maxsize)
- clnt->msize = clnt->trans_mod->maxsize-P9_IOHDRSZ;
+ if (clnt->msize > clnt->trans_mod->maxsize)
+ clnt->msize = clnt->trans_mod->maxsize;
err = p9_client_version(clnt);
if (err)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists