diff --git a/daemon/kernel.c b/daemon/kernel.c index 4e0d9cc9c..57152a6ea 100644 --- a/daemon/kernel.c +++ b/daemon/kernel.c @@ -699,10 +699,8 @@ ssize_t kernel_sendmsg(socket_t *s, struct msghdr *msg, const endpoint_t *dst, break; } - if (!p) { - atomic_inc(&p->errors); + if (!p) return -1; - } unsigned int slot_idx = atomic_inc(&shm->slots_filled); if (slot_idx >= rtpe_config.kernel_slots) {