projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0ef971d
)
rk29: vpu_mem : fix bug on region_allocate
author
陈恒明
<chm@rockchip.com>
Tue, 25 Jan 2011 09:45:47 +0000
(
01:45
-0800)
committer
陈恒明
<chm@rockchip.com>
Tue, 25 Jan 2011 09:45:47 +0000
(
01:45
-0800)
arch/arm/mach-rk29/vpu_mem.c
patch
|
blob
|
history
diff --git
a/arch/arm/mach-rk29/vpu_mem.c
b/arch/arm/mach-rk29/vpu_mem.c
index 03f59f11077354fd8dd43241e924e3bf0991a88c..d70943e2e618d2446167a9da4fb57aa5eff59f88 100644
(file)
--- 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)
*/
\r
while (curr < vpu_mem.num_entries) {
\r
if (VPU_MEM_IS_FREE(curr)) {
\r
- if (VPU_MEM_PFN(curr) >=
(unsigned char)
pfn) {
\r
+ if (VPU_MEM_PFN(curr) >= pfn) {
\r
/* set the not free bit and clear others */
\r
best_fit = curr;
\r
#if VPU_MEM_DEBUG
\r