summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorFranklin Wei <git@fwei.tk>2017-10-29 12:46:40 -0400
committerFranklin Wei <git@fwei.tk>2017-10-29 12:49:39 -0400
commit60e5cd72766ace0d35f2cf7a3d4798d8c2e848bd (patch)
tree9323b987ba43fcc5e14afe28e6c378a81b0dbda1 /lib
parent8a6d7cefc9bf45b979ff064d87141949e9b81ca4 (diff)
downloadrockbox-60e5cd72766ace0d35f2cf7a3d4798d8c2e848bd.tar.gz
rockbox-60e5cd72766ace0d35f2cf7a3d4798d8c2e848bd.tar.bz2
rockbox-60e5cd72766ace0d35f2cf7a3d4798d8c2e848bd.zip
tlsf: remove memset() call in add_new_area()
This call was not needed in the first place, but was causing crashes in sgt-puzzles. Removing it fixes the crashes. Change-Id: I1149d5600e1c97e0e848fdd34bf65d54c930adab
Diffstat (limited to 'lib')
-rw-r--r--lib/tlsf/src/tlsf.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/tlsf/src/tlsf.c b/lib/tlsf/src/tlsf.c
index d9d5a7b921..e408fe2909 100644
--- a/lib/tlsf/src/tlsf.c
+++ b/lib/tlsf/src/tlsf.c
@@ -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;