diff options
| author | Mateusz Guzik <mjg@FreeBSD.org> | 2022-02-11 12:02:02 +0000 |
|---|---|---|
| committer | Mateusz Guzik <mjg@FreeBSD.org> | 2022-02-11 12:29:26 +0000 |
| commit | 513c7a6e0cd8c13f765fda6fa1b2de53c1973753 (patch) | |
| tree | ea720f680c2349a963a8b54cf393c92e3e9f01f9 /sys/compat/linux | |
| parent | 45bb8beacc2fadbbc32428df0f2f5683863df289 (diff) | |
Diffstat (limited to 'sys/compat/linux')
| -rw-r--r-- | sys/compat/linux/linux.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/compat/linux/linux.c b/sys/compat/linux/linux.c index 8cc678e1ec7d..81ceb964662f 100644 --- a/sys/compat/linux/linux.c +++ b/sys/compat/linux/linux.c @@ -633,8 +633,6 @@ void linux_to_bsd_poll_events(struct thread *td, int fd, short lev, short *bev) { - struct proc *p = td->td_proc; - struct filedesc *fdp; struct file *fp; int error; short bits = 0; @@ -666,8 +664,7 @@ linux_to_bsd_poll_events(struct thread *td, int fd, short lev, * on non-socket file descriptors unlike FreeBSD, where * events bits is more strictly checked (POLLSTANDARD). */ - fdp = p->p_fd; - error = fget_unlocked(fdp, fd, &cap_no_rights, &fp); + error = fget_unlocked(td, fd, &cap_no_rights, &fp); if (error == 0) { /* * XXX. On FreeBSD POLLRDHUP applies only to |
