Changeset b596d0d in mainline


Ignore:
Timestamp:
2023-02-06T16:54:36Z (21 months ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8a55346
Parents:
61eb2ce2
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2023-02-06 16:52:56)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2023-02-06 16:54:36)
Message:

Fix incorrect locking in cap_unpublish()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/cap/cap.c

    r61eb2ce2 rb596d0d  
    347347                        /* Hand over cap's reference to kobj */
    348348                        kobj = cap->kobject;
    349                         if (!mutex_trylock(&kobj->caps_list_lock)) {
     349                        if (mutex_trylock(&kobj->caps_list_lock) != EOK) {
    350350                                mutex_unlock(&task->cap_info->lock);
    351351                                kobj = NULL;
Note: See TracChangeset for help on using the changeset viewer.