From e2ab37411a5991842674e159f0873e8bcbcb4e84 Mon Sep 17 00:00:00 2001 From: Fernando Guzman Lugo Date: Sat, 28 Aug 2010 01:34:23 -0500 Subject: 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 Signed-off-by: Bhavin Shah Signed-off-by: David Sin --- drivers/media/video/dmm/tmm_pat.c | 1 + 1 file changed, 1 insertion(+) 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 -- cgit v1.2.3