From ef6b0807e2c986d5f1cb878e1b32a7cf4c32b4c8 Mon Sep 17 00:00:00 2001 From: Dan Carpenter Date: Fri, 26 Aug 2011 19:57:40 +0300 Subject: fs/9p: change an int to unsigned int Without this msize=4294967295 will result in a crash Signed-off-by: Dan Carpenter Signed-off-by: Aneesh Kumar K.V Signed-off-by: Eric Van Hensbergen --- net/9p/client.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'net') diff --git a/net/9p/client.c b/net/9p/client.c index 0edee4de608..b1c02187f86 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; -- cgit v1.2.3