mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Call make_dev() with the correct minor number.
(no, this driver still doesn't play ball with DEVFS)
This commit is contained in:
parent
8ea22de129
commit
355b0652dd
1 changed files with 2 additions and 1 deletions
|
|
@ -189,7 +189,8 @@ vnfindvn(dev_t dev)
|
|||
bzero(vn, sizeof *vn);
|
||||
vn->sc_unit = unit;
|
||||
dev->si_drv1 = vn;
|
||||
make_dev(&vn_cdevsw, 0,
|
||||
make_dev(&vn_cdevsw,
|
||||
dkmakeminor(unit, WHOLE_DISK_SLICE, RAW_PART),
|
||||
UID_ROOT, GID_OPERATOR, 0640, "vn%d", unit);
|
||||
SLIST_INSERT_HEAD(&vn_list, vn, sc_list);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue