From 9e0dbf6a36ad465cf1f1d2aaf394ff124f14a36a Mon Sep 17 00:00:00 2001 From: Kenneth R Westerback Date: Wed, 12 Jan 2005 00:50:18 +0000 Subject: Don't call ahc_setup_data() after calling ahc_execute_scb() since the scb may have been freed or made active. Only affects XS_RESET case. More correctly mirrors FreeBSD code. Already done to aic79xx_openbsd.c in r1.16. --- sys/dev/ic/aic7xxx_openbsd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/dev/ic/aic7xxx_openbsd.c') diff --git a/sys/dev/ic/aic7xxx_openbsd.c b/sys/dev/ic/aic7xxx_openbsd.c index ff5c3c7560e..3a9c0089b0a 100644 --- a/sys/dev/ic/aic7xxx_openbsd.c +++ b/sys/dev/ic/aic7xxx_openbsd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: aic7xxx_openbsd.c,v 1.27 2005/01/08 03:44:36 kevlo Exp $ */ +/* $OpenBSD: aic7xxx_openbsd.c,v 1.28 2005/01/12 00:50:17 krw Exp $ */ /* $NetBSD: aic7xxx_osm.c,v 1.14 2003/11/02 11:07:44 wiz Exp $ */ /* @@ -379,10 +379,10 @@ ahc_action(struct scsi_xfer *xs) hscb->cdb_len = 0; scb->flags |= SCB_DEVICE_RESET; hscb->control |= MK_MESSAGE; - ahc_execute_scb(scb, NULL, 0); + return (ahc_execute_scb(scb, NULL, 0)); } - return ahc_setup_data(ahc, xs, scb); + return (ahc_setup_data(ahc, xs, scb)); } int -- cgit v1.2.3