Changeset efc6259 in mainline


Ignore:
Timestamp:
2025-01-12T15:50:40Z (4 months ago)
Author:
Miroslav Cimerman <mc@…>
Children:
0d77d30
Parents:
a5c2960e
git-author:
Miroslav Cimerman <mc@…> (2025-01-12 15:49:53)
git-committer:
Miroslav Cimerman <mc@…> (2025-01-12 15:50:40)
Message:

hr: fge: aggregate ENOMEM final errno

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/bd/hr/fge.c

    ra5c2960e refc6259  
    11/*
    2  * Copyright (c) 2024 Miroslav Cimerman
     2 * Copyright (c) 2025 Miroslav Cimerman
    33 * Copyright (c) 2024 Vojtech Horky
    44 * All rights reserved.
     
    317317                *rfailed = group->finished_fail;
    318318
    319         errno_t rc = EOK;
    320         if (group->finished_okay != group->wu_cnt)
    321                 rc = EIO;
     319        errno_t rc = group->final_errno;
    322320
    323321        fibril_mutex_unlock(&group->lock);
     
    393391                        fibril_mutex_lock(&group->lock);
    394392                        group->finished_fail++;
     393                        if (rc == ENOMEM)
     394                                group->final_errno = ENOMEM;
    395395                        fibril_mutex_unlock(&group->lock);
    396396                }
Note: See TracChangeset for help on using the changeset viewer.