patch-2.1.106 linux/include/linux/poll.h
Next file: linux/include/linux/proc_fs.h
Previous file: linux/include/linux/pg.h
Back to the patch index
Back to the overall index
- Lines: 11
- Date:
Sat Jun 13 13:49:01 1998
- Orig file:
v2.1.105/linux/include/linux/poll.h
- Orig date:
Tue Mar 10 10:03:35 1998
diff -u --recursive --new-file v2.1.105/linux/include/linux/poll.h linux/include/linux/poll.h
@@ -79,8 +79,8 @@
if (ufdset) {
int error;
error = verify_area(VERIFY_WRITE, ufdset, nr);
- if (!error)
- error = __copy_from_user(fdset, ufdset, nr);
+ if (!error && __copy_from_user(fdset, ufdset, nr))
+ error = -EFAULT;
return error;
}
memset(fdset, 0, nr);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov