⬢ DragonFlyBSD Kernel Audit
DF-3949 / fix.diff
← back to finding ↓ download raw
diff --git a/sys/dev/raid/mlx/mlx.c b/sys/dev/raid/mlx/mlx.c
--- a/sys/dev/raid/mlx/mlx.c
+++ b/sys/dev/raid/mlx/mlx.c
@@ -750,7 +750,7 @@ int
 	    if (sc->mlx_sysdrive[i].ms_disk != NULL) {
 		/* looking for the next one we come across? */
 		if (*arg == -1) {
-		    *arg = device_get_unit(sc->mlx_sysdrive[0].ms_disk);
+		    *arg = device_get_unit(sc->mlx_sysdrive[i].ms_disk);
 		    return(0);
 		}
 		/* we want the one after this one */