summaryrefslogtreecommitdiffstats
path: root/sys/dev/softraid.c
diff options
context:
space:
mode:
authormarco <marco@openbsd.org>2008-07-21 14:49:40 +0000
committermarco <marco@openbsd.org>2008-07-21 14:49:40 +0000
commitcd39141366f69abb4fd084b2d5b964ce5356b9d7 (patch)
tree7c9cc18193e8d53b8646278aab15a1493ec25dc7 /sys/dev/softraid.c
parentFree the rules in the rule_queue also if ipsecctl is called with (diff)
downloadwireguard-openbsd-cd39141366f69abb4fd084b2d5b964ce5356b9d7.tar.xz
wireguard-openbsd-cd39141366f69abb4fd084b2d5b964ce5356b9d7.zip
Add curproc to ioctl call.
Noticed by todd, proded by miod.
Diffstat (limited to 'sys/dev/softraid.c')
-rw-r--r--sys/dev/softraid.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/softraid.c b/sys/dev/softraid.c
index 2513b349a78..d7bdbf2c650 100644
--- a/sys/dev/softraid.c
+++ b/sys/dev/softraid.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: softraid.c,v 1.118 2008/07/20 21:57:51 djm Exp $ */
+/* $OpenBSD: softraid.c,v 1.119 2008/07/21 14:49:40 marco Exp $ */
/*
* Copyright (c) 2007 Marco Peereboom <marco@peereboom.us>
* Copyright (c) 2008 Chris Kuethe <ckuethe@openbsd.org>
@@ -791,8 +791,8 @@ sr_meta_native_bootprobe(struct sr_softc *sc, struct device *dv,
}
/* get disklabel */
- error = (*bdsw->d_ioctl)(dev, DIOCGDINFO, (void *)&label,
- FREAD, curproc);
+ error = (*bdsw->d_ioctl)(dev, DIOCGDINFO, (void *)&label, FREAD,
+ curproc);
if (error) {
DNPRINTF(SR_D_META, "%s: sr_meta_native_bootprobe ioctl "
"failed\n", DEVNAME(sc));
@@ -1000,7 +1000,7 @@ sr_meta_native_probe(struct sr_softc *sc, struct sr_chunk *ch_entry)
part = DISKPART(dev);
/* get disklabel */
- error = bdsw->d_ioctl(dev, DIOCGDINFO, (void *)&label, 0, NULL);
+ error = bdsw->d_ioctl(dev, DIOCGDINFO, (void *)&label, FREAD, curproc);
if (error) {
DNPRINTF(SR_D_META, "%s: %s can't obtain disklabel\n",
DEVNAME(sc), devname);