summaryrefslogtreecommitdiffstats
path: root/net/9p
diff options
context:
space:
mode:
authorDan Carpenter <error27@gmail.com>2011-08-26 18:57:40 +0200
committerEric Van Hensbergen <ericvh@gmail.com>2011-10-24 18:13:12 +0200
commitef6b0807e2c986d5f1cb878e1b32a7cf4c32b4c8 (patch)
tree6735db224148cc9c75ba722a8a338323626c3d46 /net/9p
parentfs/9p: Cleanup option parsing in 9p (diff)
downloadlinux-ef6b0807e2c986d5f1cb878e1b32a7cf4c32b4c8.tar.xz
linux-ef6b0807e2c986d5f1cb878e1b32a7cf4c32b4c8.zip
fs/9p: change an int to unsigned int
Without this msize=4294967295 will result in a crash Signed-off-by: Dan Carpenter <error27@gmail.com> Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
Diffstat (limited to 'net/9p')
-rw-r--r--net/9p/client.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/9p/client.c b/net/9p/client.c
index 0edee4de608a..b1c02187f862 100644
--- a/net/9p/client.c
+++ b/net/9p/client.c
@@ -201,7 +201,8 @@ free_and_return:
*
*/
-static struct p9_req_t *p9_tag_alloc(struct p9_client *c, u16 tag, int max_size)
+static struct p9_req_t *
+p9_tag_alloc(struct p9_client *c, u16 tag, unsigned int max_size)
{
unsigned long flags;
int row, col;