diff options
author | Visa Hankala <visa@cvs.openbsd.org> | 2018-08-20 14:59:03 +0000 |
---|---|---|
committer | Visa Hankala <visa@cvs.openbsd.org> | 2018-08-20 14:59:03 +0000 |
commit | fac3d0f1441b54e0b2ce22cda1d8163cf2c3ca04 (patch) | |
tree | a67991174eb2a2f76318453365faadd8511a0c0c /sys/dev/diskmap.c | |
parent | 95182cd332d3010f24de95c91b2c5c440bcf26f6 (diff) |
Make fnew() return a new file with only one reference. This makes
the API more logical.
OK kettenis@ mpi@
Diffstat (limited to 'sys/dev/diskmap.c')
-rw-r--r-- | sys/dev/diskmap.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/diskmap.c b/sys/dev/diskmap.c index bd7509c4284..33a533f0a19 100644 --- a/sys/dev/diskmap.c +++ b/sys/dev/diskmap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: diskmap.c,v 1.23 2018/08/05 14:23:57 beck Exp $ */ +/* $OpenBSD: diskmap.c,v 1.24 2018/08/20 14:59:02 visa Exp $ */ /* * Copyright (c) 2009, 2010 Joel Sing <jsing@openbsd.org> @@ -127,7 +127,6 @@ diskmapioctl(dev_t dev, u_long cmd, caddr_t addr, int flag, struct proc *p) fp->f_data = (caddr_t)vp; fdinsert(fdp, fd, flags, fp); fdpunlock(fdp); - FRELE(fp, p); closef(fp0, p); free(devname, M_DEVBUF, PATH_MAX); |