Commit ef6b0807 authored by Dan Carpenter's avatar Dan Carpenter Committed by Eric Van Hensbergen

fs/9p: change an int to unsigned int

Without this msize=4294967295 will result in a crash
Signed-off-by: default avatarDan Carpenter <error27@gmail.com>
Signed-off-by: default avatarAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: default avatarEric Van Hensbergen <ericvh@gmail.com>
parent 4d5077f1
...@@ -151,7 +151,7 @@ struct p9_req_t { ...@@ -151,7 +151,7 @@ struct p9_req_t {
struct p9_client { struct p9_client {
spinlock_t lock; /* protect client structure */ spinlock_t lock; /* protect client structure */
int msize; unsigned int msize;
unsigned char proto_version; unsigned char proto_version;
struct p9_trans_module *trans_mod; struct p9_trans_module *trans_mod;
enum p9_trans_status status; enum p9_trans_status status;
......
...@@ -201,7 +201,8 @@ static int parse_opts(char *opts, struct p9_client *clnt) ...@@ -201,7 +201,8 @@ static int parse_opts(char *opts, struct p9_client *clnt)
* *
*/ */
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; unsigned long flags;
int row, col; int row, col;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment