Commit f07d9010 authored by Joe Perches's avatar Joe Perches Committed by David S. Miller

net/9p: Add __force to cast of __user pointer

A recent commit that removed unnecessary casts of pointers
to the same type uncovered a missing __force cast.

Add it.

Reported by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent e3192690
...@@ -1548,7 +1548,7 @@ p9_client_read(struct p9_fid *fid, char *data, char __user *udata, u64 offset, ...@@ -1548,7 +1548,7 @@ p9_client_read(struct p9_fid *fid, char *data, char __user *udata, u64 offset,
kernel_buf = 1; kernel_buf = 1;
indata = data; indata = data;
} else } else
indata = udata; indata = (__force char *)udata;
/* /*
* response header len is 11 * response header len is 11
* PDU Header(7) + IO Size (4) * PDU Header(7) + IO Size (4)
......
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