kernel: fix sys_msg_send returning without unlocking self

This commit is contained in:
2026-03-29 11:51:26 +01:00
parent 286016040c
commit 325699d64a
+2 -2
View File
@@ -240,12 +240,12 @@ kern_status_t sys_msg_send(
port_handle, port_handle,
&port_obj, &port_obj,
&port_handle_flags); &port_handle_flags);
task_unlock_irqrestore(self, flags);
if (status != KERN_OK) { if (status != KERN_OK) {
return status; return status;
} }
task_unlock_irqrestore(self, flags);
struct port *port = port_cast(port_obj); struct port *port = port_cast(port_obj);
if (!port) { if (!port) {
object_unref(port_obj); object_unref(port_obj);