summaryrefslogtreecommitdiff
path: root/sys/dev/mlx
diff options
context:
space:
mode:
authorStephane E. Potvin <sepotvin@FreeBSD.org>2008-09-12 17:40:17 +0000
committerStephane E. Potvin <sepotvin@FreeBSD.org>2008-09-12 17:40:17 +0000
commit29e6fa3a7fc7488afa8f17c3f93bff4bcbcff738 (patch)
treefa6049849ab9735b9c75084f246857df36936a8f /sys/dev/mlx
parent3d0f3248eac46800370b58871ec49d0aa4f877f3 (diff)
Notes
Diffstat (limited to 'sys/dev/mlx')
-rw-r--r--sys/dev/mlx/mlx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/mlx/mlx.c b/sys/dev/mlx/mlx.c
index 76205e193e80..c7c7be7f95ed 100644
--- a/sys/dev/mlx/mlx.c
+++ b/sys/dev/mlx/mlx.c
@@ -760,7 +760,7 @@ mlx_ioctl(struct cdev *dev, u_long cmd, caddr_t addr, int32_t flag, struct threa
if (sc->mlx_sysdrive[i].ms_disk != 0) {
/* 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 */