DF-1740 / fix.diff
diff --git a/sys/dev/raid/vinum/vinumioctl.c b/sys/dev/raid/vinum/vinumioctl.c --- a/sys/dev/raid/vinum/vinumioctl.c +++ b/sys/dev/raid/vinum/vinumioctl.c @@ -257,7 +257,7 @@ case VINUM_GETFREELIST: /* get a drive free list element */ index = *(int *) data; /* get the drive index */ - fe = ((int *) data)[1]; /* and the free list element */ + fe = ((u_int *) data)[1]; /* and the free list element */ if ((index >= (unsigned) vinum_conf.drives_allocated) /* plex doesn't exist */ ||(DRIVE[index].state == drive_unallocated)) { error = ENODEV; |