Changeset 7473807 in mainline for kernel/generic/src/synch/futex.c
- Timestamp:
- 2018-05-11T20:22:42Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d2c5159
- Parents:
- ae89656
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/synch/futex.c
rae89656 r7473807 339 339 static futex_t *get_and_cache_futex(uintptr_t phys_addr, uintptr_t uaddr) 340 340 { 341 futex_t *futex = malloc(sizeof(futex_t), 0); 341 futex_t *futex = malloc(sizeof(futex_t), FRAME_ATOMIC); 342 if (!futex) 343 return NULL; 342 344 343 345 /* … … 363 365 * Cache the link to the futex object for this task. 364 366 */ 365 futex_ptr_t *fut_ptr = malloc(sizeof(futex_ptr_t), 0); 367 futex_ptr_t *fut_ptr = malloc(sizeof(futex_ptr_t), FRAME_ATOMIC); 368 if (!fut_ptr) { 369 spinlock_lock(&futex_ht_lock); 370 futex_release_ref(futex); 371 spinlock_unlock(&futex_ht_lock); 372 return NULL; 373 } 366 374 cht_link_t *dup_link; 367 375
Note:
See TracChangeset
for help on using the changeset viewer.