Commit b4936449 authored by James Simmons's avatar James Simmons

Merge maxwell.earthlink.net:/usr/src/linus-2.5

into maxwell.earthlink.net:/usr/src/fbdev-2.5
parents 470d3cc3 d55d7cdf
...@@ -268,7 +268,7 @@ static void select_bits_free(void *bits, int size) ...@@ -268,7 +268,7 @@ static void select_bits_free(void *bits, int size)
((unsigned long) (MAX_SCHEDULE_TIMEOUT / HZ)-1) ((unsigned long) (MAX_SCHEDULE_TIMEOUT / HZ)-1)
asmlinkage long asmlinkage long
sys_select(int n, fd_set *inp, fd_set *outp, fd_set *exp, struct timeval *tvp) sys_select(int n, fd_set __user *inp, fd_set __user *outp, fd_set __user *exp, struct timeval __user *tvp)
{ {
fd_set_bits fds; fd_set_bits fds;
char *bits; char *bits;
...@@ -429,7 +429,7 @@ static int do_poll(unsigned int nfds, struct poll_list *list, ...@@ -429,7 +429,7 @@ static int do_poll(unsigned int nfds, struct poll_list *list,
return count; return count;
} }
asmlinkage long sys_poll(struct pollfd * ufds, unsigned int nfds, long timeout) asmlinkage long sys_poll(struct pollfd __user * ufds, unsigned int nfds, long timeout)
{ {
struct poll_wqueues table; struct poll_wqueues table;
int fdcount, err; int fdcount, err;
......
...@@ -67,7 +67,7 @@ typedef struct { ...@@ -67,7 +67,7 @@ typedef struct {
* Use "unsigned long" accesses to let user-mode fd_set's be long-aligned. * Use "unsigned long" accesses to let user-mode fd_set's be long-aligned.
*/ */
static inline static inline
int get_fd_set(unsigned long nr, void *ufdset, unsigned long *fdset) int get_fd_set(unsigned long nr, void __user *ufdset, unsigned long *fdset)
{ {
nr = FDS_BYTES(nr); nr = FDS_BYTES(nr);
if (ufdset) { if (ufdset) {
...@@ -82,7 +82,7 @@ int get_fd_set(unsigned long nr, void *ufdset, unsigned long *fdset) ...@@ -82,7 +82,7 @@ int get_fd_set(unsigned long nr, void *ufdset, unsigned long *fdset)
} }
static inline static inline
void set_fd_set(unsigned long nr, void *ufdset, unsigned long *fdset) void set_fd_set(unsigned long nr, void __user *ufdset, unsigned long *fdset)
{ {
if (ufdset) if (ufdset)
__copy_to_user(ufdset, fdset, FDS_BYTES(nr)); __copy_to_user(ufdset, fdset, FDS_BYTES(nr));
......
...@@ -1091,7 +1091,7 @@ asmlinkage long sys_nanosleep(struct timespec *rqtp, struct timespec *rmtp) ...@@ -1091,7 +1091,7 @@ asmlinkage long sys_nanosleep(struct timespec *rqtp, struct timespec *rmtp)
/* /*
* sys_sysinfo - fill in sysinfo struct * sys_sysinfo - fill in sysinfo struct
*/ */
asmlinkage long sys_sysinfo(struct sysinfo *info) asmlinkage long sys_sysinfo(struct sysinfo __user *info)
{ {
struct sysinfo val; struct sysinfo val;
u64 uptime; u64 uptime;
......
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