summaryrefslogtreecommitdiffstats
path: root/sys/dev/diskmap.c
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2012-04-22 05:43:14 +0000
committerguenther <guenther@openbsd.org>2012-04-22 05:43:14 +0000
commit06a89b59aa60d7f9c0e1ea26802b0384ef0dc14c (patch)
tree2a68460f65d82ea3089edac4aeb664d53b5154e8 /sys/dev/diskmap.c
parentFix printing commands with no arguments, from Benjamin Poirier. (diff)
downloadwireguard-openbsd-06a89b59aa60d7f9c0e1ea26802b0384ef0dc14c.tar.xz
wireguard-openbsd-06a89b59aa60d7f9c0e1ea26802b0384ef0dc14c.zip
Add struct proc * argument to FRELE() and FILE_SET_MATURE() in
anticipation of further changes to closef(). No binary change. ok krw@ miod@ deraadt@
Diffstat (limited to 'sys/dev/diskmap.c')
-rw-r--r--sys/dev/diskmap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/diskmap.c b/sys/dev/diskmap.c
index c2197d8abd7..8cd3182a342 100644
--- a/sys/dev/diskmap.c
+++ b/sys/dev/diskmap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: diskmap.c,v 1.6 2011/07/07 23:45:00 matthew Exp $ */
+/* $OpenBSD: diskmap.c,v 1.7 2012/04/22 05:43:14 guenther Exp $ */
/*
* Copyright (c) 2009, 2010 Joel Sing <jsing@openbsd.org>
@@ -116,7 +116,7 @@ diskmapioctl(dev_t dev, u_long cmd, caddr_t addr, int flag, struct proc *p)
VOP_UNLOCK(vp, 0, p);
- FRELE(fp);
+ FRELE(fp, p);
fdpunlock(fdp);
free(devname, M_DEVBUF);
@@ -126,7 +126,7 @@ bad:
if (vp)
vput(vp);
if (fp)
- FRELE(fp);
+ FRELE(fp, p);
fdpunlock(fdp);