summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFernando Guzman Lugo <x0095840@ti.com>2010-08-28 01:34:23 -0500
committerSebastien Jan <s-jan@ti.com>2010-09-03 09:41:44 +0200
commit5e64cdbd268c5ec6b6f2301e29417275a066284e (patch)
tree96fe5024b208a91069373dc251069e253a046e36
parent89d02769e1726395e64e6ea50d5ffccb4f52d4dc (diff)
TILER: Fix when get element from empty list
If free_list is empty the element won't be assigned to NULL. Causing issues when freeing the pages. Signed-off-by: Fernando Guzman Lugo <fernando.lugo@ti.com> Signed-off-by: Bhavin Shah <bshah@ti.com> Signed-off-by: David Sin <davidsin@ti.com>
-rw-r--r--drivers/media/video/dmm/tmm_pat.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/video/dmm/tmm_pat.c b/drivers/media/video/dmm/tmm_pat.c
index ec267767a905..4010bdfb2e08 100644
--- a/drivers/media/video/dmm/tmm_pat.c
+++ b/drivers/media/video/dmm/tmm_pat.c
@@ -195,6 +195,7 @@ static u32 *tmm_pat_get_pages(struct tmm *tmm, s32 n)
mutex_lock(&pvt->mtx);
pos = NULL;
q = NULL;
+ m = NULL;
/*
* remove one mem struct from the free list and