summaryrefslogtreecommitdiff
path: root/sys/kern/subr_disk.c
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2000-12-15 17:55:24 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2000-12-15 17:55:24 +0000
commitf84ee0ff00e98a6b1d53df99506716f23af2fd99 (patch)
treead787d8b467d26007b746f12727c9de5a90a1c42 /sys/kern/subr_disk.c
parent12e720d78bf94de3b7f64be5f7fd7bced7c19b75 (diff)
Notes
Diffstat (limited to 'sys/kern/subr_disk.c')
-rw-r--r--sys/kern/subr_disk.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/subr_disk.c b/sys/kern/subr_disk.c
index 0b98fea394d3..baf2cdaecd70 100644
--- a/sys/kern/subr_disk.c
+++ b/sys/kern/subr_disk.c
@@ -55,6 +55,8 @@ disk_clone(void *arg, char *name, int namelen, dev_t *dev)
u *= 10;
u += name[i++] - '0';
}
+ if (u > DKMAXUNIT)
+ continue;
p = RAW_PART;
s = WHOLE_DISK_SLICE;
pdev = makedev(dp->d_devsw->d_maj, dkmakeminor(u, s, p));