Changeset f4cb6c5f in mainline


Ignore:
Timestamp:
2018-11-11T15:47:39Z (6 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
25f6bddb
Parents:
45c8eea
git-author:
Jakub Jermar <jakub@…> (2018-11-11 10:26:12)
git-committer:
Jakub Jermar <jakub@…> (2018-11-11 15:47:39)
Message:

Reset whandle to CAP_NIL in futex_destroy()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/private/futex.h

    r45c8eea rf4cb6c5f  
    5757static inline errno_t futex_destroy(futex_t *futex)
    5858{
    59         if (futex->whandle)
    60                 return __SYSCALL1(SYS_WAITQ_DESTROY, (sysarg_t) futex->whandle);
     59        if (futex->whandle) {
     60                errno_t rc;
     61                rc = __SYSCALL1(SYS_WAITQ_DESTROY, (sysarg_t) futex->whandle);
     62                futex->whandle = CAP_NIL;
     63                return rc;
     64        }
    6165        return EOK;
    6266}
Note: See TracChangeset for help on using the changeset viewer.