kernel: fix sys_msg_send returning without unlocking self
This commit is contained in:
+2
-2
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user