diff options
author | Fernando Guzman Lugo <x0095840@ti.com> | 2010-08-28 01:34:23 -0500 |
---|---|---|
committer | Ricardo Perez Olivares <x0081762@ti.com> | 2010-08-31 20:16:05 -0500 |
commit | e2ab37411a5991842674e159f0873e8bcbcb4e84 (patch) | |
tree | 9dba562b212bac651215f4b4a4dc57ce3018c2cb | |
parent | 390a12222008a33b5be32058007a9391e7977f2a (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.c | 1 |
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 |