Module Name:    src
Committed By:   christos
Date:           Sat Oct 31 00:41:19 UTC 2015

Modified Files:
        src/sys/dev/pci: vioscsi.c

Log Message:
fix the status return.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/dev/pci/vioscsi.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/pci/vioscsi.c
diff -u src/sys/dev/pci/vioscsi.c:1.4 src/sys/dev/pci/vioscsi.c:1.5
--- src/sys/dev/pci/vioscsi.c:1.4	Fri Oct 30 17:59:25 2015
+++ src/sys/dev/pci/vioscsi.c	Fri Oct 30 20:41:19 2015
@@ -17,7 +17,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vioscsi.c,v 1.4 2015/10/30 21:59:25 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vioscsi.c,v 1.5 2015/10/31 00:41:19 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -385,11 +385,11 @@ vioscsi_req_done(struct vioscsi_softc *s
 		DPRINTF(("%s: stuffup: %d\n", __func__, vr->vr_res.response));
 		xs->error = XS_DRIVER_STUFFUP;
 		xs->resid = xs->datalen;
-		xs->status = vr->vr_res.status;
-		xs->resid = vr->vr_res.residual;
 		break;
 	}
 
+	xs->status = vr->vr_res.status;
+	xs->resid = vr->vr_res.residual;
 
 	DPRINTF(("%s: done %d, %d, %d\n", __func__,
 	    xs->error, xs->status, xs->resid));

Reply via email to