Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/ic Set xs->error = XS_SENSE in the appropriate spot.



details:   https://anonhg.NetBSD.org/src/rev/e1a9deca0eb7
branches:  trunk
changeset: 526110:e1a9deca0eb7
user:      ad <ad%NetBSD.org@localhost>
date:      Thu Apr 25 18:45:35 2002 +0000

description:
Set xs->error = XS_SENSE in the appropriate spot.

diffstat:

 sys/dev/ic/icpsp.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 80aa91532ba6 -r e1a9deca0eb7 sys/dev/ic/icpsp.c
--- a/sys/dev/ic/icpsp.c        Thu Apr 25 18:16:49 2002 +0000
+++ b/sys/dev/ic/icpsp.c        Thu Apr 25 18:45:35 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: icpsp.c,v 1.1 2002/04/22 21:05:21 ad Exp $     */
+/*     $NetBSD: icpsp.c,v 1.2 2002/04/25 18:45:35 ad Exp $     */
 
 /*-
  * Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: icpsp.c,v 1.1 2002/04/22 21:05:21 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: icpsp.c,v 1.2 2002/04/25 18:45:35 ad Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -301,6 +301,7 @@
                case SCSI_CHECK:
                        memcpy(&xs->sense.scsi_sense, icp->icp_scr + soff,
                            sizeof(xs->sense.scsi_sense));
+                       xs->error = XS_SENSE;
                        /* FALLTHROUGH */
                default:
                        /*



Home | Main Index | Thread Index | Old Index