rk29: vpu_mem : fix bug on region_allocate

This commit is contained in:
陈恒明
2011-01-25 01:45:47 -08:00
parent 0ef971df7e
commit 9f2a2f5d98

View File

@@ -428,7 +428,7 @@ static long vpu_mem_allocate(struct file *file, unsigned int len)
*/
while (curr < vpu_mem.num_entries) {
if (VPU_MEM_IS_FREE(curr)) {
if (VPU_MEM_PFN(curr) >= (unsigned char)pfn) {
if (VPU_MEM_PFN(curr) >= pfn) {
/* set the not free bit and clear others */
best_fit = curr;
#if VPU_MEM_DEBUG