Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 211130
b: refs/heads/master
c: 01db403
h: refs/heads/master
v: v3
  • Loading branch information
David S. Miller committed Sep 28, 2010
1 parent 2311818 commit 40e8479
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 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: 0b20406cda621c2495d10baab1e87127ceb43337
refs/heads/master: 01db403cf99f739f86903314a489fb420e0e254f
2 changes: 1 addition & 1 deletion trunk/include/linux/socket.h
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ extern int csum_partial_copy_fromiovecend(unsigned char *kdata,
int offset,
unsigned int len, __wsum *csump);

extern int verify_iovec(struct msghdr *m, struct iovec *iov, struct sockaddr *address, int mode);
extern long verify_iovec(struct msghdr *m, struct iovec *iov, struct sockaddr *address, int mode);
extern int memcpy_toiovec(struct iovec *v, unsigned char *kdata, int len);
extern int memcpy_toiovecend(const struct iovec *v, unsigned char *kdata,
int offset, int len);
Expand Down
5 changes: 3 additions & 2 deletions trunk/net/core/iovec.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,10 @@
* in any case.
*/

int verify_iovec(struct msghdr *m, struct iovec *iov, struct sockaddr *address, int mode)
long verify_iovec(struct msghdr *m, struct iovec *iov, struct sockaddr *address, int mode)
{
int size, err, ct;
int size, ct;
long err;

if (m->msg_namelen) {
if (mode == VERIFY_READ) {
Expand Down
2 changes: 1 addition & 1 deletion trunk/net/ipv4/tcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -943,7 +943,7 @@ int tcp_sendmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg,
sg = sk->sk_route_caps & NETIF_F_SG;

while (--iovlen >= 0) {
int seglen = iov->iov_len;
size_t seglen = iov->iov_len;
unsigned char __user *from = iov->iov_base;

iov++;
Expand Down

0 comments on commit 40e8479

Please sign in to comment.