FreeBSD Bugzilla – Attachment 13302 Details for
Bug 25393
System panics, when user calls poll with parameters in wrong order
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.12 KB, created by
ak03
on 2001-02-26 23:20:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
ak03
Created:
2001-02-26 23:20:01 UTC
Size:
1.12 KB
patch
obsolete
>Index: sys_generic.c >=================================================================== >RCS file: /usr/ncvs/src/sys/kern/sys_generic.c,v >retrieving revision 1.73 >diff -u -r1.73 sys_generic.c >--- sys_generic.c 2001/02/09 08:10:22 1.73 >+++ sys_generic.c 2001/02/26 22:49:37 >@@ -73,7 +73,7 @@ > static MALLOC_DEFINE(M_SELECT, "select", "select() buffer"); > MALLOC_DEFINE(M_IOV, "iov", "large iov's"); > >-static int pollscan __P((struct proc *, struct pollfd *, int)); >+static int pollscan __P((struct proc *, struct pollfd *, u_int)); > static int selscan __P((struct proc *, fd_mask **, fd_mask **, int)); > static int dofileread __P((struct proc *, struct file *, int, void *, > size_t, off_t, int)); >@@ -858,7 +858,8 @@ > caddr_t bits; > char smallbits[32 * sizeof(struct pollfd)]; > struct timeval atv, rtv, ttv; >- int s, ncoll, error = 0, timo, nfds; >+ int s, ncoll, error = 0, timo; >+ u_int nfds; > size_t ni; > > nfds = SCARG(uap, nfds); >@@ -945,10 +946,10 @@ > pollscan(p, fds, nfd) > struct proc *p; > struct pollfd *fds; >- int nfd; >+ u_int nfd; > { > register struct filedesc *fdp = p->p_fd; >- int i; >+ u_int i; > struct file *fp; > int n = 0;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 25393
: 13302