RT-Thread/rt-thread — pull request #316 by grissiom (2014-08-20 02:20:32+00:00)
Title: 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.