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/alpha/osf1 | |
| parent | 59047ccadec9566c55492972f002d65a4e3f6460 (diff) | |
Notes
Diffstat (limited to 'sys/alpha/osf1')
| -rw-r--r-- | sys/alpha/osf1/osf1_misc.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/alpha/osf1/osf1_misc.c b/sys/alpha/osf1/osf1_misc.c index 46b20d9f8020..124ba523c419 100644 --- a/sys/alpha/osf1/osf1_misc.c +++ b/sys/alpha/osf1/osf1_misc.c @@ -672,10 +672,8 @@ osf1_fstat(td, uap) struct osf1_stat oub; int error; - fp = ffind_hold(td, uap->fd); - if (fp == NULL) - return (EBADF); - + if ((error = fget(td, uap->fd, &fp)) != 0) + return (error); error = fo_stat(fp, &ub, td); fdrop(fp, td); cvtstat2osf1(&ub, &oub); |
