From: 陈恒明 Date: Tue, 25 Jan 2011 09:45:47 +0000 (-0800) Subject: rk29: vpu_mem : fix bug on region_allocate X-Git-Tag: firefly_0821_release~10785^2~12^2~12 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=9f2a2f5d98d7ee2417aca03bbec9b9b9b15af94c;p=firefly-linux-kernel-4.4.55.git rk29: vpu_mem : fix bug on region_allocate --- diff --git a/arch/arm/mach-rk29/vpu_mem.c b/arch/arm/mach-rk29/vpu_mem.c index 03f59f110773..d70943e2e618 100644 --- a/arch/arm/mach-rk29/vpu_mem.c +++ b/arch/arm/mach-rk29/vpu_mem.c @@ -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