cam: add missing MAKEDEV_NOWAIT in passregister

Reported by:	dhw
This commit is contained in:
Mateusz Guzik 2020-08-18 16:06:16 +00:00
parent dbec3e0147
commit f1f3f7cf0b

View File

@ -652,6 +652,7 @@ passregister(struct cam_periph *periph, void *arg)
args.mda_gid = GID_OPERATOR; args.mda_gid = GID_OPERATOR;
args.mda_mode = 0600; args.mda_mode = 0600;
args.mda_si_drv1 = periph; args.mda_si_drv1 = periph;
args.mda_flags = MAKEDEV_NOWAIT;
error = make_dev_s(&args, &softc->dev, "%s%d", periph->periph_name, error = make_dev_s(&args, &softc->dev, "%s%d", periph->periph_name,
periph->unit_number); periph->unit_number);
if (error != 0) { if (error != 0) {