Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 172078
b: refs/heads/master
c: 5b23136
h: refs/heads/master
v: v3
  • Loading branch information
Jean-Mickael Guerin authored and David S. Miller committed Dec 2, 2009
1 parent 5d03791 commit 8016b51
Show file tree
Hide file tree
Showing 2 changed files with 7 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: d7256d0eb4c82b789125f610fea11c6e82b1bcff
refs/heads/master: 5b23136bcf766a58160a319677b366c90f0cd223
8 changes: 6 additions & 2 deletions trunk/net/compat.c
Original file line number Diff line number Diff line change
Expand Up @@ -758,9 +758,13 @@ asmlinkage long compat_sys_recvmmsg(int fd, struct compat_mmsghdr __user *mmsg,
{
int datagrams;
struct timespec ktspec;
struct compat_timespec __user *utspec =
(struct compat_timespec __user *)timeout;
struct compat_timespec __user *utspec;

if (timeout == NULL)
return __sys_recvmmsg(fd, (struct mmsghdr __user *)mmsg, vlen,
flags | MSG_CMSG_COMPAT, NULL);

utspec = (struct compat_timespec __user *)timeout;
if (get_user(ktspec.tv_sec, &utspec->tv_sec) ||
get_user(ktspec.tv_nsec, &utspec->tv_nsec))
return -EFAULT;
Expand Down

0 comments on commit 8016b51

Please sign in to comment.