diff options
| author | 2002-02-13 19:08:06 +0000 | |
|---|---|---|
| committer | 2002-02-13 19:08:06 +0000 | |
| commit | 2cc38fedad07e26699fd31f343d5325058c8d847 (patch) | |
| tree | 8cb82fa06cc657271a26abb480ea883cb7de524d /sys/compat/linux/linux_blkio.c | |
| parent | The syscall numer is quad to __syscall(2). (diff) | |
| download | wireguard-openbsd-2cc38fedad07e26699fd31f343d5325058c8d847.tar.xz wireguard-openbsd-2cc38fedad07e26699fd31f343d5325058c8d847.zip | |
More FREF/FRELE on relevant places. Now, only sys_mmap and a bunch of ioctl functions in sys/compat are left.
Diffstat (limited to 'sys/compat/linux/linux_blkio.c')
| -rw-r--r-- | sys/compat/linux/linux_blkio.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/compat/linux/linux_blkio.c b/sys/compat/linux/linux_blkio.c index 71bf8fb9f56..321afe91058 100644 --- a/sys/compat/linux/linux_blkio.c +++ b/sys/compat/linux/linux_blkio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: linux_blkio.c,v 1.3 2002/02/08 00:03:46 art Exp $ */ +/* $OpenBSD: linux_blkio.c,v 1.4 2002/02/13 19:08:06 art Exp $ */ /* $NetBSD: linux_blkio.c,v 1.3 2001/01/18 17:48:04 tv Exp $ */ /* @@ -71,6 +71,7 @@ linux_ioctl_blkio(struct proc *p, struct linux_sys_ioctl_args *uap, fdp = p->p_fd; if ((fp = fd_getfile(fdp, SCARG(uap, fd))) == NULL) return (EBADF); + FREF(fp); error = 0; ioctlf = fp->f_ops->fo_ioctl; com = SCARG(uap, com); @@ -115,5 +116,6 @@ linux_ioctl_blkio(struct proc *p, struct linux_sys_ioctl_args *uap, error = ENOTTY; } + FRELE(fp); return error; } |
