From f2643dce67392003f9c3da4d04d35b2954ecb0b6 Mon Sep 17 00:00:00 2001 From: jsg Date: Tue, 27 Jun 2017 12:04:26 +0000 Subject: [PATCH] Avoid testing an uninitialised variable in the SCSI_BUSY/SCSI_QUEUE_FULL paths of hvs_scsi_cmd_done(). ok mikeb@ --- sys/dev/pv/hvs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/pv/hvs.c b/sys/dev/pv/hvs.c index ca5ff1abf07..48b7a59a574 100644 --- a/sys/dev/pv/hvs.c +++ b/sys/dev/pv/hvs.c @@ -639,7 +639,7 @@ hvs_scsi_cmd_done(struct hvs_ccb *ccb) printf("%s: status %#x iostatus %#x (busy)\n", sc->sc_dev.dv_xname, srb->srb_scsistatus, srb->srb_iostatus); - xs->error = XS_BUSY; + error = XS_BUSY; break; case SCSI_CHECK: if (srb->srb_iostatus & SRB_STATUS_AUTOSENSE_VALID) { -- 2.20.1