summaryrefslogtreecommitdiff
path: root/sys/dev/ic/gdt_common.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/ic/gdt_common.c')
-rw-r--r--sys/dev/ic/gdt_common.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/ic/gdt_common.c b/sys/dev/ic/gdt_common.c
index 85c7ec7373f..751f43251a0 100644
--- a/sys/dev/ic/gdt_common.c
+++ b/sys/dev/ic/gdt_common.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: gdt_common.c,v 1.11 2000/12/13 16:03:11 mickey Exp $ */
+/* $OpenBSD: gdt_common.c,v 1.12 2001/07/04 06:43:18 niklas Exp $ */
/*
* Copyright (c) 1999, 2000 Niklas Hallqvist. All rights reserved.
@@ -508,7 +508,9 @@ gdt_scsi_cmd(xs)
while ((xs = gdt_dequeue(gdt))) {
xs->error = XS_NOERROR;
ccb = NULL;
-
+ link = xs->sc_link;
+ target = link->target;
+
if (!gdt_polling && !(xs->flags & SCSI_POLL) &&
gdt->sc_test_busy(gdt)) {
/*