fs/9p: change an int to unsigned int
authorDan Carpenter <error27@gmail.com>
Fri, 26 Aug 2011 16:57:40 +0000 (19:57 +0300)
committerEric Van Hensbergen <ericvh@gmail.com>
Mon, 24 Oct 2011 16:13:12 +0000 (11:13 -0500)
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>
include/net/9p/client.h
net/9p/client.c

index 55ce72ce98618bbc42e7310bb637275a3b80645c..d479d7dcc4d5208092fba5ff6b6df978af8a6640 100644 (file)
@@ -151,7 +151,7 @@ struct p9_req_t {
 
 struct p9_client {
        spinlock_t lock; /* protect client structure */
-       int msize;
+       unsigned int msize;
        unsigned char proto_version;
        struct p9_trans_module *trans_mod;
        enum p9_trans_status status;
index 0edee4de608a0f8b18be71491bb74940219193e5..b1c02187f862e2dd19bc1af0582dbce2a17e94c8 100644 (file)
@@ -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;