⬢ DragonFlyBSD Kernel Audit
DF-4716 / fix.diff
← back to finding ↓ download raw
--- a/sys/dev/raid/vinum/vinumraid5.c
+++ b/sys/dev/raid/vinum/vinumraid5.c
@@ -534,7 +534,7 @@
 	    if (build_rq_buffer(rqe, plex))		    /* build the buffer */
 		return REQUEST_ENOMEM;			    /* can't do it */
 	    if ((m.flags & XFR_PARITYOP)		    /* parity operation, */
-	    &&((m.flags & XFR_BAD_SUBDISK) == 0))	    /* and not the bad subdisk, */
+	    &&((rqe->flags & XFR_BAD_SUBDISK) == 0))	    /* and not the bad subdisk, */
 		rqe->b.b_cmd = BUF_CMD_READ;		    /* we must read first */
 
 	    /* Now update pointers for the next block */