diff options
author | Thomas Jarosch <tomj@simonv.com> | 2015-01-01 23:45:24 +0100 |
---|---|---|
committer | Thomas Jarosch <tomj@simonv.com> | 2015-01-01 23:49:41 +0100 |
commit | 9076b433d18b5db1a1987fe99ca7c70808f22b0e (patch) | |
tree | d99db3399c648a104fbbcc2fdb6f89be49a75dd6 /firmware | |
parent | b0277e4b6d6c8371c25657179cf6338d976790c9 (diff) |
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')
-rw-r--r-- | firmware/buflib.c | 2 |
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; |