diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 2001-07-04 06:43:19 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 2001-07-04 06:43:19 +0000 |
commit | 51be33cc35f39cba58a8bd17a5b258073b4789c3 (patch) | |
tree | c7dd9b87dedc21fca89da07083831bc33912a3c7 /sys/dev/ic | |
parent | 2773a88ea8492f70bd46f91153b92ac8dce7bf0b (diff) |
Use the right target when checking for out of bounds.
Diffstat (limited to 'sys/dev/ic')
-rw-r--r-- | sys/dev/ic/gdt_common.c | 6 |
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)) { /* |