提交 b13215b7 编写于 作者: B bernard.xiong

fix malloc(0xffffffff) issue.

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1154 bbd45198-f89e-11dd-88c7-29a3b14d5316
上级 7880b57f
......@@ -233,7 +233,7 @@ void *rt_page_alloc(rt_size_t npages)
struct rt_page_head *b, *n;
struct rt_page_head **prev;
RT_ASSERT(npages != 0);
if(npages == 0) return RT_NULL;
for (prev = &rt_page_list; (b = *prev) != RT_NULL; prev = &(b->next))
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册