Changeset f0cc1c64 in mainline for uspace/srv/system/system.c


Ignore:
Timestamp:
2025-06-20T19:26:13Z (9 days ago)
Author:
Miroslav Cimerman <mc@…>
Children:
817cb83
Parents:
f0360ec (diff), 5caad1d (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge upstream into helenraid

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/system/system.c

    rf0360ec rf0cc1c64  
    573573static errno_t system_srv_init(sys_srv_t *syssrv)
    574574{
    575         port_id_t port;
     575        port_id_t port = 0;
    576576        loc_srv_t *srv = NULL;
    577577        service_id_t sid = 0;
     
    595595        }
    596596
    597         rc = loc_service_register(srv, SYSTEM_DEFAULT, &sid);
     597        rc = loc_service_register(srv, SYSTEM_DEFAULT, port, &sid);
    598598        if (rc != EOK) {
    599599                log_msg(LOG_DEFAULT, LVL_ERROR,
     
    609609        if (srv != NULL)
    610610                loc_server_unregister(srv);
    611         // XXX destroy port
     611        if (port != 0)
     612                async_port_destroy(port);
    612613        return rc;
    613614}
Note: See TracChangeset for help on using the changeset viewer.