summaryrefslogtreecommitdiffstats
path: root/sys/dev/fdc
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/fdc')
-rw-r--r--sys/dev/fdc/fdc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/fdc/fdc.c b/sys/dev/fdc/fdc.c
index 1fc50a3..9173564 100644
--- a/sys/dev/fdc/fdc.c
+++ b/sys/dev/fdc/fdc.c
@@ -1136,6 +1136,9 @@ fd_clone(void *arg, char *name, int namelen, dev_t *dev)
return;
if (dev_stdclone(name, &n, "fd", &u) != 2)
return;
+ if (u != fd->fdu)
+ /* unit # mismatch */
+ return;
l = strlen(n);
if (l == 1 && *n >= 'a' && *n <= 'h') {
/*
OpenPOWER on IntegriCloud