summaryrefslogtreecommitdiffstats
path: root/sys/dev/firewire/fwdev.c
diff options
context:
space:
mode:
authorsimokawa <simokawa@FreeBSD.org>2003-10-01 06:04:30 +0000
committersimokawa <simokawa@FreeBSD.org>2003-10-01 06:04:30 +0000
commit52f3ed471697534d35a97f910949a43788f33d8e (patch)
tree063d7de77e71c2bd4afc934619db430ee77d7952 /sys/dev/firewire/fwdev.c
parentd259685f66e7899908461ceecf1c643f28b13511 (diff)
downloadFreeBSD-src-52f3ed471697534d35a97f910949a43788f33d8e.zip
FreeBSD-src-52f3ed471697534d35a97f910949a43788f33d8e.tar.gz
Fix a bug in fwdev_clone().
Spotted by: grog
Diffstat (limited to 'sys/dev/firewire/fwdev.c')
-rw-r--r--sys/dev/firewire/fwdev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/firewire/fwdev.c b/sys/dev/firewire/fwdev.c
index 0d61fb7..545f1cd 100644
--- a/sys/dev/firewire/fwdev.c
+++ b/sys/dev/firewire/fwdev.c
@@ -791,7 +791,7 @@ fwdev_clone(void *arg, char *name, int namelen, dev_t *dev)
return;
for (i = 0; i < NDEVTYPE; i++)
- if (dev_stdclone(name, &subp, devnames[i], &unit) != 1)
+ if (dev_stdclone(name, &subp, devnames[i], &unit) == 2)
goto found;
/* not match */
return;
OpenPOWER on IntegriCloud