DragonFlyBSD Kernel Audit
DF-1794 / fix.diff
← back to finding ↓ download raw
diff --git a/sys/dev/raid/twa/tw_osl_cam.c b/sys/dev/raid/twa/tw_osl_cam.c
--- a/sys/dev/raid/twa/tw_osl_cam.c
+++ b/sys/dev/raid/twa/tw_osl_cam.c
@@ -740,7 +740,7 @@
 			 * If none of the above errors occurred, simply
 			 * mark completion error.
 			 */
-			if (ccb->ccb_h.status == 0)
+			else
 				ccb->ccb_h.status = CAM_REQ_CMP_ERR;
 
 			if (req_pkt->status & TW_CL_ERR_REQ_AUTO_SENSE_VALID) {