Author: mjg
Date: Wed Jan 21 01:06:14 2015
New Revision: 277461
URL: https://svnweb.freebsd.org/changeset/base/277461
Log:
filedesc: plug a test for impossible condition in _fget
Modified:
head/sys/kern/kern_descrip.c
Modified: head/sys/kern/kern_descrip.c
==============================================================================
--- head/sys/kern/kern_descrip.c Wed Jan 21 01:06:08 2015
(r277460)
+++ head/sys/kern/kern_descrip.c Wed Jan 21 01:06:14 2015
(r277461)
@@ -2439,8 +2439,7 @@ _fget(struct thread *td, int fd, struct
int error;
*fpp = NULL;
- if (td == NULL || (fdp = td->td_proc->p_fd) == NULL)
- return (EBADF);
+ fdp = td->td_proc->p_fd;
if (needrightsp != NULL)
needrights = *needrightsp;
else
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"