From 4f60c04796b2ca9a2553782a264581caba380684 Mon Sep 17 00:00:00 2001 From: Niklas Hallqvist Date: Wed, 4 Jul 2001 06:49:29 +0000 Subject: Use the right target when checking for out of bounds. --- sys/dev/ic/aac.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sys/dev/ic') 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: -- cgit v1.2.3