summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_conf.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/kern_conf.c')
-rw-r--r--sys/kern/kern_conf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/kern_conf.c b/sys/kern/kern_conf.c
index 05fc62b..cd1a87e 100644
--- a/sys/kern/kern_conf.c
+++ b/sys/kern/kern_conf.c
@@ -436,6 +436,8 @@ dev_stdclone(char *name, char **namep, const char *stem, int *unit)
u *= 10;
u += name[i++] - '0';
}
+ if (u > 0xffffff)
+ return (0);
*unit = u;
if (namep)
*namep = &name[i];
OpenPOWER on IntegriCloud