From 51be33cc35f39cba58a8bd17a5b258073b4789c3 Mon Sep 17 00:00:00 2001 From: Niklas Hallqvist Date: Wed, 4 Jul 2001 06:43:19 +0000 Subject: Use the right target when checking for out of bounds. --- sys/dev/ic/gdt_common.c | 6 ++++-- 1 file 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)) { /* -- cgit v1.2.3