diff --git a/sys/dev/vinum/vinumio.c b/sys/dev/vinum/vinumio.c index cb66d2936a07..584915f6c725 100644 --- a/sys/dev/vinum/vinumio.c +++ b/sys/dev/vinum/vinumio.c @@ -125,7 +125,7 @@ open_drive(struct drive *drive, struct proc *p, int verbose) +((unit & ~31) << 16); /* high-order unit bits */ } - if ((unit & 7) == 2) /* partition c */ + if ((devminor & 7) == 2) /* partition c */ return ENOTTY; /* not buying that */ drive->dev = makedev(devmajor, devminor); /* find the device */