--- src/sys/dev/raid/vinum/vinumio.c 2006/09/10 01:26:36 1.16 +++ src/sys/dev/raid/vinum/vinumio.c 2006/11/05 11:40:45 1.17 @@ -33,7 +33,7 @@ * otherwise) arising in any way out of the use of this software, even if * advised of the possibility of such damage. * - * $Id: vinumio.c,v 1.16 2006/09/10 01:26:36 dillon Exp $ + * $Id: vinumio.c,v 1.17 2006/11/05 11:40:45 corecode Exp $ * $FreeBSD: src/sys/dev/vinum/vinumio.c,v 1.52.2.6 2002/05/02 08:43:44 grog Exp $ * $DragonFly$ */ @@ -136,6 +136,9 @@ open_drive(struct drive *drive, struct p drive->dev = udev2dev(makeudev(devmajor, devminor), 0); + if (drive->dev == NOCDEV) + return ENODEV; + drive->dev->si_iosize_max = DFLTPHYS; if (dev_is_good(drive->dev)) drive->lasterror = dev_dopen(drive->dev, FWRITE, 0, proc0.p_ucred);