Ignore:
File:
1 edited

Legend:

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

    rfc0de8c r0db0df2  
    118118}
    119119
    120 static bool caps_key_equal(const void *key, const ht_link_t *item)
     120static bool caps_key_equal(const void *key, size_t hash, const ht_link_t *item)
    121121{
    122122        const cap_handle_t *handle = key;
     
    125125}
    126126
    127 static hash_table_ops_t caps_ops = {
     127static const hash_table_ops_t caps_ops = {
    128128        .hash = caps_hash,
    129129        .key_hash = caps_key_hash,
     
    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.