Crash fix

This commit is contained in:
Lubos Dolezel 2020-03-06 17:28:12 +01:00
parent 24c025368b
commit cf2248b1ed

View File

@ -201,6 +201,7 @@ linux_kevent_copyout(struct kqueue *kq, int nready,
if (kn->kev.filter == 0) {
dbg_puts("kevent copyout for zero filter, discarding!");
nret--;
continue;
}
filt = &kq->kq_filt[~(kn->kev.filter)];
rv = filt->kf_copyout(eventlist, kn, ev);