diff options
| author | Alfred Perlstein <alfred@FreeBSD.org> | 2002-01-14 00:13:45 +0000 |
|---|---|---|
| committer | Alfred Perlstein <alfred@FreeBSD.org> | 2002-01-14 00:13:45 +0000 |
| commit | a4db49537b0def4e1a63bb696ab51b7549fcdf23 (patch) | |
| tree | fe7842143c9585ef2ebb793d812ec71cc4488a51 /sys/dev/tdfx | |
| parent | 59047ccadec9566c55492972f002d65a4e3f6460 (diff) | |
Notes
Diffstat (limited to 'sys/dev/tdfx')
| -rw-r--r-- | sys/dev/tdfx/tdfx_pci.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/tdfx/tdfx_pci.c b/sys/dev/tdfx/tdfx_pci.c index cfbfe18a0833..b94eedf82abc 100644 --- a/sys/dev/tdfx/tdfx_pci.c +++ b/sys/dev/tdfx/tdfx_pci.c @@ -844,9 +844,8 @@ linux_ioctl_tdfx(struct thread *td, struct linux_ioctl_args* args) struct file *fp; - fp = ffind_hold(td, args->fd); - if (fp == NULL) - return (EBADF); + if ((error = fget(td, args->fd, &fp)) != 0) + return (error); /* We simply copy the data and send it right to ioctl */ copyin((caddr_t)args->arg, &d_pio, sizeof(d_pio)); error = fo_ioctl(fp, cmd, (caddr_t)&d_pio, td); |
