diff options
author | Fernando Guzman Lugo <x0095840@ti.com> | 2010-08-28 01:34:23 -0500 |
---|---|---|
committer | Ricardo Perez Olivares <x0081762@ti.com> | 2010-09-14 19:27:44 -0500 |
commit | 30cc48826a90b75e5cd2b7bbbc6a050ec952d0f9 (patch) | |
tree | 25605eb7e2632d00808842951a10121c2660c9f4 /drivers/media | |
parent | 278a120fd0a33f82346d956f152baa5df439e8c6 (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>
Diffstat (limited to 'drivers/media')
-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 |