mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-10-30 01:52:51 +00:00
ucode: fix a memory corruption
the uloop binding was not closing the uloop epoll fd correcttl when forking. Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
13
feeds/ucentral/ucode/patches/0002-ubus-fix.patch
Normal file
13
feeds/ucentral/ucode/patches/0002-ubus-fix.patch
Normal file
@@ -0,0 +1,13 @@
|
||||
Index: ucode-2022-04-07-7fa59ce4/lib/uloop.c
|
||||
===================================================================
|
||||
--- ucode-2022-04-07-7fa59ce4.orig/lib/uloop.c
|
||||
+++ ucode-2022-04-07-7fa59ce4/lib/uloop.c
|
||||
@@ -971,6 +971,8 @@ uc_uloop_task(uc_vm_t *vm, size_t nargs)
|
||||
err_return(errno);
|
||||
|
||||
if (pid == 0) {
|
||||
+ uloop_done();
|
||||
+
|
||||
patch_devnull(0, false);
|
||||
patch_devnull(1, true);
|
||||
patch_devnull(2, true);
|
||||
Reference in New Issue
Block a user