Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 214476
b: refs/heads/master
c: a700d8b
h: refs/heads/master
v: v3
  • Loading branch information
Namhyung Kim authored and David S. Miller committed Sep 9, 2010
1 parent 363d260 commit 661af75
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: cf0ac2b8a759fecbefd80f890c6dbe80ba65fd95
refs/heads/master: a700d8be733bd593ea4797dfde17aed4f35213c0
6 changes: 4 additions & 2 deletions trunk/net/core/iovec.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ int verify_iovec(struct msghdr *m, struct iovec *iov, struct sockaddr *address,

if (m->msg_namelen) {
if (mode == VERIFY_READ) {
err = move_addr_to_kernel(m->msg_name, m->msg_namelen,
void __user *namep;
namep = (void __user __force *) m->msg_name;
err = move_addr_to_kernel(namep, m->msg_namelen,
address);
if (err < 0)
return err;
Expand All @@ -52,7 +54,7 @@ int verify_iovec(struct msghdr *m, struct iovec *iov, struct sockaddr *address,
}

size = m->msg_iovlen * sizeof(struct iovec);
if (copy_from_user(iov, m->msg_iov, size))
if (copy_from_user(iov, (void __user __force *) m->msg_iov, size))
return -EFAULT;

m->msg_iov = iov;
Expand Down

0 comments on commit 661af75

Please sign in to comment.