diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 2001-07-04 06:49:29 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 2001-07-04 06:49:29 +0000 |
commit | 4f60c04796b2ca9a2553782a264581caba380684 (patch) | |
tree | 2d5e5e6b84b14facaa7c4f98a9ad2603d22fff6b /sys/dev | |
parent | d1516f764d6f38af5f57f45d59e11e418227f393 (diff) |
Use the right target when checking for out of bounds.
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/ic/aac.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/ic/aac.c b/sys/dev/ic/aac.c index 68c1511dcc2..27b61baf010 100644 --- a/sys/dev/ic/aac.c +++ b/sys/dev/ic/aac.c @@ -1,4 +1,4 @@ -/* $OpenBSD: aac.c,v 1.5 2001/06/27 01:55:28 niklas Exp $ */ +/* $OpenBSD: aac.c,v 1.6 2001/07/04 06:49:28 niklas Exp $ */ /*- * Copyright (c) 2000 Michael Smith @@ -639,6 +639,8 @@ aac_scsi_cmd(xs) while ((xs = aac_dequeue(sc))) { xs->error = XS_NOERROR; ccb = NULL; + link = xs->sc_link; + target = link->target; switch (xs->cmd->opcode) { case TEST_UNIT_READY: |