In vfs_kqfilter(), return EINVAL instead of 1 (EPERM) when an unsupported
kqueue filter type is requested on a vnode. MFC after: 3 days
This commit is contained in:
parent
831a62e7e5
commit
fd1a469ba5
@ -3763,7 +3763,7 @@ vfs_kqfilter(struct vop_kqfilter_args *ap)
|
||||
kn->kn_fop = &vfsvnode_filtops;
|
||||
break;
|
||||
default:
|
||||
return (1);
|
||||
return (EINVAL);
|
||||
}
|
||||
|
||||
kn->kn_hook = (caddr_t)vp;
|
||||
|
Loading…
Reference in New Issue
Block a user