summaryrefslogtreecommitdiffstats
path: root/sys/dev/raidframe
diff options
context:
space:
mode:
authorjsing <jsing@openbsd.org>2010-09-08 14:47:10 +0000
committerjsing <jsing@openbsd.org>2010-09-08 14:47:10 +0000
commit2690bc4b4564b6e3ab15e9e2e71320c8c8126f8d (patch)
treede52551407b31466735b74a3c619b4a7d5b3e3d2 /sys/dev/raidframe
parentNuke bogus comment. (diff)
downloadwireguard-openbsd-2690bc4b4564b6e3ab15e9e2e71320c8c8126f8d.tar.xz
wireguard-openbsd-2690bc4b4564b6e3ab15e9e2e71320c8c8126f8d.zip
Store a struct device pointer within struct disk and populate this when
disk_attach() is called by the device driver. We will be building on this shortly. ok deraadt@ krw@
Diffstat (limited to 'sys/dev/raidframe')
-rw-r--r--sys/dev/raidframe/rf_openbsdkintf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/raidframe/rf_openbsdkintf.c b/sys/dev/raidframe/rf_openbsdkintf.c
index 69bba6d32a5..0b5eded062a 100644
--- a/sys/dev/raidframe/rf_openbsdkintf.c
+++ b/sys/dev/raidframe/rf_openbsdkintf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rf_openbsdkintf.c,v 1.57 2010/06/26 23:24:45 guenther Exp $ */
+/* $OpenBSD: rf_openbsdkintf.c,v 1.58 2010/09/08 14:47:12 jsing Exp $ */
/* $NetBSD: rf_netbsdkintf.c,v 1.109 2001/07/27 03:30:07 oster Exp $ */
/*-
@@ -1619,7 +1619,7 @@ raidinit(RF_Raid_t *raidPtr)
* other things, so it's critical to call this *BEFORE* we try
* putzing with disklabels.
*/
- disk_attach(&rs->sc_dkdev);
+ disk_attach(NULL, &rs->sc_dkdev);
/*
* XXX There may be a weird interaction here between this, and