Changes in kernel/generic/src/cap/cap.c [fc0de8c:0db0df2] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/cap/cap.c
rfc0de8c r0db0df2 118 118 } 119 119 120 static bool caps_key_equal(const void *key, const ht_link_t *item)120 static bool caps_key_equal(const void *key, size_t hash, const ht_link_t *item) 121 121 { 122 122 const cap_handle_t *handle = key; … … 125 125 } 126 126 127 static hash_table_ops_t caps_ops = {127 static const hash_table_ops_t caps_ops = { 128 128 .hash = caps_hash, 129 129 .key_hash = caps_key_hash, … … 347 347 /* Hand over cap's reference to kobj */ 348 348 kobj = cap->kobject; 349 if ( !mutex_trylock(&kobj->caps_list_lock)) {349 if (mutex_trylock(&kobj->caps_list_lock) != EOK) { 350 350 mutex_unlock(&task->cap_info->lock); 351 351 kobj = NULL;
Note:
See TracChangeset
for help on using the changeset viewer.