summaryrefslogtreecommitdiffstats
path: root/sys/alpha/osf1/osf1_misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/alpha/osf1/osf1_misc.c')
-rw-r--r--sys/alpha/osf1/osf1_misc.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/alpha/osf1/osf1_misc.c b/sys/alpha/osf1/osf1_misc.c
index 46b20d9..124ba52 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);
OpenPOWER on IntegriCloud