git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
This commit was manufactured by cvs2svn to create tag
[linux-2.6.git]
/
include
/
linux
/
poll.h
diff --git
a/include/linux/poll.h
b/include/linux/poll.h
index
b4bb681
..
a44feb5
100644
(file)
--- a/
include/linux/poll.h
+++ b/
include/linux/poll.h
@@
-82,10
+82,14
@@
int get_fd_set(unsigned long nr, void __user *ufdset, unsigned long *fdset)
}
static inline
}
static inline
-
void
set_fd_set(unsigned long nr, void __user *ufdset, unsigned long *fdset)
+
int
set_fd_set(unsigned long nr, void __user *ufdset, unsigned long *fdset)
{
{
+ int ret = 0;
if (ufdset)
if (ufdset)
- __copy_to_user(ufdset, fdset, FDS_BYTES(nr));
+ ret = __copy_to_user(ufdset, fdset, FDS_BYTES(nr));
+ if (ret)
+ return -EFAULT;
+ return 0;
}
static inline
}
static inline