diff options
| author | yamt <yamt@NetBSD.org> | 2003-02-23 08:50:58 +0000 |
|---|---|---|
| committer | yamt <yamt@NetBSD.org> | 2003-02-23 08:50:58 +0000 |
| commit | bcd7beec98f6dfbae4e97fa1d55e836066370020 (patch) | |
| tree | 57ff41903ce7a29bf5a784918b179a4bdfe31ea0 /sys/dev/ata | |
| parent | 49230d68b3b9a9bc125acaa1441c63c609741e1f (diff) | |
initialize b_interlock properly.
(for ioctl)
Diffstat (limited to 'sys/dev/ata')
| -rw-r--r-- | sys/dev/ata/wd.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/ata/wd.c b/sys/dev/ata/wd.c index 61f1c2487a9..194ef3327f2 100644 --- a/sys/dev/ata/wd.c +++ b/sys/dev/ata/wd.c @@ -1,4 +1,4 @@ -/* $NetBSD: wd.c,v 1.237 2003/01/27 18:21:29 thorpej Exp $ */ +/* $NetBSD: wd.c,v 1.238 2003/02/23 08:50:58 yamt Exp $ */ /* * Copyright (c) 1998, 2001 Manuel Bouyer. All rights reserved. @@ -66,7 +66,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: wd.c,v 1.237 2003/01/27 18:21:29 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: wd.c,v 1.238 2003/02/23 08:50:58 yamt Exp $"); #ifndef WDCDEBUG #define WDCDEBUG @@ -1454,6 +1454,7 @@ wi_get() int s; wi = malloc(sizeof(struct wd_ioctl), M_TEMP, M_WAITOK|M_ZERO); + simple_lock_init(&wi->wi_bp.b_interlock); s = splbio(); LIST_INSERT_HEAD(&wi_head, wi, wi_list); splx(s); |
