diff options
| author | Bruce Evans <bde@FreeBSD.org> | 1998-10-25 19:26:18 +0000 |
|---|---|---|
| committer | Bruce Evans <bde@FreeBSD.org> | 1998-10-25 19:26:18 +0000 |
| commit | 65baf8f06be716fc398b13c46e97cc7eab2bb5f0 (patch) | |
| tree | 58a855fd5434c8a7e732c191547e3286bbfc4205 /sys/isofs | |
| parent | 9cd93b3aecdc2272aaff51808129066e8e34281d (diff) | |
Notes
Diffstat (limited to 'sys/isofs')
| -rw-r--r-- | sys/isofs/cd9660/cd9660_vfsops.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/isofs/cd9660/cd9660_vfsops.c b/sys/isofs/cd9660/cd9660_vfsops.c index fb877ca1a412a..69e3ebd0c7483 100644 --- a/sys/isofs/cd9660/cd9660_vfsops.c +++ b/sys/isofs/cd9660/cd9660_vfsops.c @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * @(#)cd9660_vfsops.c 8.18 (Berkeley) 5/22/95 - * $Id: cd9660_vfsops.c,v 1.43 1998/09/07 13:17:00 bde Exp $ + * $Id: cd9660_vfsops.c,v 1.44 1998/09/14 19:56:39 sos Exp $ */ #include <sys/param.h> @@ -229,7 +229,8 @@ cd9660_mount(mp, path, data, ndp, p) vrele(devvp); return ENOTBLK; } - if (major(devvp->v_rdev) >= nblkdev) { + if (major(devvp->v_rdev) >= nblkdev || + bdevsw[major(devvp->v_rdev)] == NULL) { vrele(devvp); return ENXIO; } |
