summaryrefslogtreecommitdiffstats
path: root/firmware/buflib.c
diff options
context:
space:
mode:
authorThomas Jarosch <tomj@simonv.com>2015-01-01 23:45:24 +0100
committerThomas Jarosch <tomj@simonv.com>2015-01-01 23:49:41 +0100
commit9076b433d18b5db1a1987fe99ca7c70808f22b0e (patch)
treed99db3399c648a104fbbcc2fdb6f89be49a75dd6 /firmware/buflib.c
parentb0277e4b6d6c8371c25657179cf6338d976790c9 (diff)
downloadrockbox-9076b433d18b5db1a1987fe99ca7c70808f22b0e.tar.gz
rockbox-9076b433d18b5db1a1987fe99ca7c70808f22b0e.tar.bz2
rockbox-9076b433d18b5db1a1987fe99ca7c70808f22b0e.zip
PictureFlow: Add move callback for buflib allocations
If we don't provide a callback to buflib_alloc(), the buffer is always movable (to reduce fragmentation). Since we pass our buffer to functions that call yield(), this could lead to memory corruption on buflib compaction. Change-Id: Id1fad1822479d692551c55cb8bc87cea7b78f759
Diffstat (limited to 'firmware/buflib.c')
-rw-r--r--firmware/buflib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/buflib.c b/firmware/buflib.c
index 9ee721af1f..a47f0a0e62 100644
--- a/firmware/buflib.c
+++ b/firmware/buflib.c
@@ -677,7 +677,7 @@ buflib_free(struct buflib_context *ctx, int handle_num)
else
{
/* Otherwise, set block to the newly-freed block, and mark it free, before
- * continuing on, since the code below exects block to point to a free
+ * continuing on, since the code below expects block to point to a free
* block which may have free space after it.
*/
block = freed_block;