summaryrefslogtreecommitdiff
path: root/libcpu
diff options
context:
space:
mode:
authorGrissiom <[email protected]>2014-08-20 10:16:04 +0800
committerGrissiom <[email protected]>2014-08-20 10:16:04 +0800
commitb8bf6bef76bdabe76749c752217afbe5d24ba371 (patch)
tree3231af73935f8d42c6d3446278b723ccf6cc8e08 /libcpu
parent0135dd38cf2b485b071b143ca544bb4d7c801a68 (diff)
kernel: mempool: fix race condition in rt_mp_alloc
When thread wake up from waiting for memory, there is a chance that there is no memory available in high pressure. So use a loop to check again. Otherwise, there will be a NULL reference.
Diffstat (limited to 'libcpu')
0 files changed, 0 insertions, 0 deletions