When returning EIO from DEVFSIO_RADD ioctl, drop the exclusive rule
lock. Otherwise the system comes to a rather sudden and grinding halt. MFC after: 1 week
This commit is contained in:
parent
cd17a1f7ba
commit
8f0d99d790
@ -186,8 +186,10 @@ devfs_rules_ioctl(struct devfs_mount *dm, u_long cmd, caddr_t data, struct threa
|
||||
error = EEXIST;
|
||||
break;
|
||||
}
|
||||
if (rid2rsn(dr->dr_id) == 0)
|
||||
return (EIO);
|
||||
if (rid2rsn(dr->dr_id) == 0) {
|
||||
error = EIO;
|
||||
break;
|
||||
}
|
||||
error = devfs_rule_insert(dr);
|
||||
break;
|
||||
case DEVFSIO_RAPPLY:
|
||||
|
Loading…
x
Reference in New Issue
Block a user