summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorenami <enami@NetBSD.org>2000-04-19 04:49:50 +0000
committerenami <enami@NetBSD.org>2000-04-19 04:49:50 +0000
commita2bf5442003c90ce5edbbec313c90186b552ed56 (patch)
tree57ceff77755b8bf6693ea200926fce7dddfd9fb0 /sys/dev
parent5e5941eda1381674ca32d74189c0c5c36e4b8aad (diff)
Allocate the variable `inqbuf' in scsi_probedev on stack rather than
statically. Since this function may called for another luns immediately, allocating it statically doesn't make sense and may cause race condition as pointed out by PR#9749.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/scsipi/scsiconf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/scsipi/scsiconf.c b/sys/dev/scsipi/scsiconf.c
index bbc0bba2289..0a14e0bc871 100644
--- a/sys/dev/scsipi/scsiconf.c
+++ b/sys/dev/scsipi/scsiconf.c
@@ -1,4 +1,4 @@
-/* $NetBSD: scsiconf.c,v 1.139 2000/04/02 17:25:52 augustss Exp $ */
+/* $NetBSD: scsiconf.c,v 1.140 2000/04/19 04:49:50 enami Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -668,7 +668,7 @@ scsi_probedev(scsi, target, lun)
int target, lun;
{
struct scsipi_link *sc_link;
- static struct scsipi_inquiry_data inqbuf;
+ struct scsipi_inquiry_data inqbuf;
struct scsi_quirk_inquiry_pattern *finger;
int checkdtype, priority, docontinue;
struct scsipibus_attach_args sa;