diff options
| author | Jordan K. Hubbard <jkh@FreeBSD.org> | 1998-02-15 08:14:39 +0000 |
|---|---|---|
| committer | Jordan K. Hubbard <jkh@FreeBSD.org> | 1998-02-15 08:14:39 +0000 |
| commit | 7d15435cb1400fe65b0009a38bd7f69526052571 (patch) | |
| tree | 1425e66a4c9c888ea025b6a711d7b93b4d707df8 /sys/dev/ccd | |
| parent | ee10b2a47529047725ce2981fe93058a96d45a12 (diff) | |
Notes
Diffstat (limited to 'sys/dev/ccd')
| -rw-r--r-- | sys/dev/ccd/ccd.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/ccd/ccd.c b/sys/dev/ccd/ccd.c index bbd3871cb703..5ec5f3d69432 100644 --- a/sys/dev/ccd/ccd.c +++ b/sys/dev/ccd/ccd.c @@ -1,4 +1,4 @@ -/* $Id: ccd.c,v 1.27 1997/11/18 14:39:04 phk Exp $ */ +/* $Id: ccd.c,v 1.28 1998/01/31 03:19:06 eivind Exp $ */ /* $NetBSD: ccd.c,v 1.22 1995/12/08 19:13:26 thorpej Exp $ */ @@ -631,7 +631,7 @@ ccdopen(dev, flags, fmt, p) ccdgetdisklabel(dev); /* Check that the partition exists. */ - if (part != RAW_PART && ((part > lp->d_npartitions) || + if (part != RAW_PART && ((part >= lp->d_npartitions) || (lp->d_partitions[part].p_fstype == FS_UNUSED))) { error = ENXIO; goto done; @@ -938,6 +938,7 @@ ccdintr(cs, bp) register struct buf *bp; { + s = splbio(); #ifdef DEBUG if (ccddebug & CCDB_FOLLOW) printf("ccdintr(%x, %x)\n", cs, bp); |
