diff options
author | Lajos Molnar <molnar@ti.com> | 2011-12-16 14:11:05 +0800 |
---|---|---|
committer | Andy Green <andy.green@linaro.org> | 2011-12-26 22:33:21 +0800 |
commit | be380c9f497f9005a9ca120d9d59a8d9c2114c78 (patch) | |
tree | a308990ce2c428b3b16debf7d2cdd83c6d8cde6c | |
parent | aa8eb5287dde61c933d29757a8d025f5fb5f26f1 (diff) |
OMAP: TILER: TCM-SITA: Fix bug in 1D area allocation
TCM-SiTA allocated 1 page more than necessary for every 1D area allocation.
This is now fixed.
Signed-off-by: Lajos Molnar <molnar@ti.com>
-rw-r--r-- | drivers/media/video/tiler/tcm/tcm-sita.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/video/tiler/tcm/tcm-sita.c b/drivers/media/video/tiler/tcm/tcm-sita.c index 71b921308bb..d0784c6fa6f 100644 --- a/drivers/media/video/tiler/tcm/tcm-sita.c +++ b/drivers/media/video/tiler/tcm/tcm-sita.c @@ -685,6 +685,8 @@ static s32 scan_r2l_b2t_one_dim(struct tcm *tcm, u32 num_slots, } else { /* count consecutive free slots */ found++; + if (found == num_slots) + break; } /* move to the left */ |