fix bug on vpu_mem

修改 vpu_mem 的 region 检查
This commit is contained in:
陈恒明
2010-12-08 21:06:10 -08:00
parent 2ccb85dcf3
commit fd32e8213e

View File

@@ -234,9 +234,9 @@ static int region_check(int index)
"vpu_mem: region_check fail: negative first %d\n", index);
WARN(index >= vpu_mem.num_entries,
"vpu_mem: region_check fail: too large first %d\n", index);
WARN(end <= 0,
WARN(end < 0,
"vpu_mem: region_check fail: negative end %d\n", end);
WARN(end > vpu_mem.num_entries,
WARN(end >= vpu_mem.num_entries,
"vpu_mem: region_check fail: too large end %d\n", end);
WARN(!VPU_MEM_FIRST(index),
"vpu_mem: region_check fail: index %d is not first\n", index);