diff options
| author | 2018-08-20 14:59:02 +0000 | |
|---|---|---|
| committer | 2018-08-20 14:59:02 +0000 | |
| commit | 5b75427a810b4513a43989a98c8723ba39d8cabf (patch) | |
| tree | cb0f80779259b773aaca8a9173e60a622d807b4a /sys/dev/diskmap.c | |
| parent | Fix problems with page scrolling in copy mode, GitHub issue 1440 from (diff) | |
| download | wireguard-openbsd-5b75427a810b4513a43989a98c8723ba39d8cabf.tar.xz wireguard-openbsd-5b75427a810b4513a43989a98c8723ba39d8cabf.zip | |
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); |
