Skip to content

Commit

Permalink
tlsf: remove memset() call in add_new_area()
Browse files Browse the repository at this point in the history
This call was not needed in the first place, but was causing crashes in
sgt-puzzles. Removing it fixes the crashes.

Change-Id: I1149d5600e1c97e0e848fdd34bf65d54c930adab
  • Loading branch information
built1n committed Oct 29, 2017
1 parent 8a6d7ce commit 60e5cd7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/tlsf/src/tlsf.c
Expand Up @@ -506,7 +506,9 @@ size_t add_new_area(void *area, size_t area_size, void *mem_pool)
area_info_t *ptr, *ptr_prev, *ai;
bhdr_t *ib0, *b0, *lb0, *ib1, *b1, *lb1, *next_b;

memset(area, 0, area_size);
/* FW 28-10-17: disabled memset due to crashes on ARM. Functions
* fine without it. */
/* memset(area, 0, area_size); */
ptr = tlsf->area_head;
ptr_prev = 0;

Expand Down

0 comments on commit 60e5cd7

Please sign in to comment.