MT#55283 don't write to null

Change-Id: Ia1db1f4580a373d0812c8fe01b1bb2bcde9059e5
mr26.1
Richard Fuchs 1 month ago
parent 5403ed616a
commit b1c20eec6a

@ -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) {

Loading…
Cancel
Save