aboutsummaryrefslogtreecommitdiff
path: root/libs/libc/alloc.c
diff options
context:
space:
mode:
authorMarvin Borner2021-04-02 13:55:25 +0200
committerMarvin Borner2021-04-02 13:55:25 +0200
commitd055495f3dbb62f74809d31a84621d6e86d61d0a (patch)
tree38d39fd8ae20cec29221264e8394586cc509547c /libs/libc/alloc.c
parent3e81b8a254485de532d46c9a0710be97879d0605 (diff)
Fixed serious race condition exploits
Diffstat (limited to 'libs/libc/alloc.c')
-rw-r--r--libs/libc/alloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/libc/alloc.c b/libs/libc/alloc.c
index f45c5af..928a519 100644
--- a/libs/libc/alloc.c
+++ b/libs/libc/alloc.c
@@ -40,7 +40,7 @@ static int liballoc_free(void *ptr, u32 p)
#endif
-static u8 locked = 0;
+static u32 locked = 0;
static int liballoc_lock(void)
{