When allocating a device's scsipi_link, initialize the pending_xfers
queue.
This commit is contained in:
parent
126dc6bfcc
commit
98194169ea
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: atapiconf.c,v 1.15 1998/11/19 22:25:56 thorpej Exp $ */
|
||||
/* $NetBSD: atapiconf.c,v 1.16 1998/12/08 00:14:41 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1996 Manuel Bouyer. All rights reserved.
|
||||
@ -262,6 +262,7 @@ atapi_probedev(atapi, target)
|
||||
*sc_link = *atapi->adapter_link;
|
||||
sc_link->scsipi_atapi.drive = target;
|
||||
sc_link->device = NULL;
|
||||
TAILQ_INIT(&sc_link->pending_xfers);
|
||||
#if defined(SCSIDEBUG) && DEBUGTYPE == BUS_ATAPI
|
||||
if (DEBUGTARGET == -1 || target == DEBUGTARGET)
|
||||
sc_link->flags |= DEBUGLEVEL;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: scsiconf.c,v 1.120 1998/12/05 20:52:47 mjacob Exp $ */
|
||||
/* $NetBSD: scsiconf.c,v 1.121 1998/12/08 00:14:41 thorpej Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
@ -606,6 +606,7 @@ scsi_probedev(scsi, target, lun)
|
||||
sc_link->scsipi_scsi.target = target;
|
||||
sc_link->scsipi_scsi.lun = lun;
|
||||
sc_link->device = &probe_switch;
|
||||
TAILQ_INIT(&sc_link->pending_xfers);
|
||||
|
||||
/*
|
||||
* Ask the device what it is
|
||||
|
Loading…
Reference in New Issue
Block a user