Changeset f0360ec in mainline for uspace/srv/bd/hr/util.c


Ignore:
Timestamp:
2025-06-17T22:33:02Z (5 days ago)
Author:
Miroslav Cimerman <mc@…>
Children:
f0cc1c64
Parents:
3c518fc
Message:

hr: RAID 0, 1: use ENOMEM safe primitives

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/bd/hr/util.c

    r3c518fc rf0360ec  
    524524    uint64_t cnt)
    525525{
    526         hr_range_lock_t *rl = malloc(sizeof(hr_range_lock_t));
    527         if (rl == NULL)
    528                 return NULL;
     526        hr_range_lock_t *rl = malloc_waitok(sizeof(hr_range_lock_t));
    529527
    530528        return hr_range_lock_acquire_internal(rl, vol, ba, cnt);
Note: See TracChangeset for help on using the changeset viewer.