From d00ec6f403ca91334f89783499dea7d5048269da Mon Sep 17 00:00:00 2001 From: David Gwynne Date: Tue, 15 Aug 2006 04:26:59 +0000 Subject: when there's normal sense data i think the command completed ok, there's just extra data. say there's no residual if that's the case. --- sys/dev/pci/arc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/dev/pci/arc.c b/sys/dev/pci/arc.c index ec5fca70437..006097319d5 100644 --- a/sys/dev/pci/arc.c +++ b/sys/dev/pci/arc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: arc.c,v 1.19 2006/08/15 02:09:02 dlg Exp $ */ +/* $OpenBSD: arc.c,v 1.20 2006/08/15 04:26:58 dlg Exp $ */ /* * Copyright (c) 2006 David Gwynne @@ -540,6 +540,7 @@ arc_scsi_cmd_done(struct arc_softc *sc, struct arc_ccb *ccb, u_int32_t reg) xs->sense.error_code = SSD_ERRCODE_VALID | 0x70; xs->status = SCSI_CHECK; xs->error = XS_SENSE; + xs->resid = 0; break; default: -- cgit v1.2.3