Fix a bug in fwdev_clone().
Spotted by: grog
This commit is contained in:
parent
1419773de3
commit
c727011a76
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user