Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 866a8f3 in mainline


Ignore:
Timestamp:
2017-09-19T19:59:54Z (3 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
master
Children:
dd20cbb
Parents:
6abfd250
Message:

Remove cap from type list when reclaiming

File:
1 edited

Legend:

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

    r6abfd250 r866a8f3  
    117117                cap_t *cap = &task->cap_info->caps[handle];
    118118                if (cap->type > CAP_TYPE_ALLOCATED) {
    119                         if (cap->can_reclaim && cap->can_reclaim(cap))
     119                        if (cap->can_reclaim && cap->can_reclaim(cap)) {
     120                                list_remove(&cap->link);
    120121                                cap_initialize(cap, handle);
     122                        }
    121123                }
    122124                if (cap->type == CAP_TYPE_INVALID) {
Note: See TracChangeset for help on using the changeset viewer.