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:
Robert Watson 2005-09-12 19:22:37 +00:00
parent 831a62e7e5
commit fd1a469ba5

View File

@ -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;