diff options
author | 2003-01-19 14:32:00 +0000 | |
---|---|---|
committer | 2003-01-19 14:32:00 +0000 | |
commit | 722d30738a453bf2c932b40e903c04f8c8bed43a (patch) | |
tree | 974e2ed67d0b7671489bed10e69d8d1c1e77ec8d /sys/dev/raidframe/rf_disks.c | |
parent | Wording. (diff) | |
download | wireguard-openbsd-722d30738a453bf2c932b40e903c04f8c8bed43a.tar.xz wireguard-openbsd-722d30738a453bf2c932b40e903c04f8c8bed43a.zip |
Temporary fix for PR#3069 (thanks for the report, Alex Cichowski), until
I find time to really follow all cases.
At least it works here, and doesn't add new problems, it seems.
Diffstat (limited to 'sys/dev/raidframe/rf_disks.c')
-rw-r--r-- | sys/dev/raidframe/rf_disks.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/dev/raidframe/rf_disks.c b/sys/dev/raidframe/rf_disks.c index f9ba8433298..c72a1ec7367 100644 --- a/sys/dev/raidframe/rf_disks.c +++ b/sys/dev/raidframe/rf_disks.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rf_disks.c,v 1.7 2002/12/16 07:01:03 tdeval Exp $ */ +/* $OpenBSD: rf_disks.c,v 1.8 2003/01/19 14:32:00 tdeval Exp $ */ /* $NetBSD: rf_disks.c,v 1.31 2000/06/02 01:17:14 oster Exp $ */ /* @@ -653,11 +653,7 @@ rf_ConfigureDisk(RF_Raid_t *raidPtr, char *buf, RF_RaidDisk_t *diskPtr, } (void) strcpy(diskPtr->devname, p); -#if 0 proc = raidPtr->engine_thread; -#else - proc = curproc; -#endif /* Let's start by claiming the component is fine and well... */ diskPtr->status = rf_ds_optimal; @@ -665,7 +661,7 @@ rf_ConfigureDisk(RF_Raid_t *raidPtr, char *buf, RF_RaidDisk_t *diskPtr, raidPtr->raid_cinfo[row][col].ci_vp = NULL; raidPtr->raid_cinfo[row][col].ci_dev = NULL; - error = raidlookup(diskPtr->devname, proc, &vp); + error = raidlookup(diskPtr->devname, curproc, &vp); if (error) { printf("raidlookup on device: %s failed !\n", diskPtr->devname); if (error == ENXIO) { |