From 1ca2265fd43dcd3148ef0312c54e5b216ecc88e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josef=20S=C3=B6ntgen?= Date: Fri, 24 Jun 2022 14:38:30 +0200 Subject: [PATCH] pc/wifi: do not execute driver on user stack The 'with_libc' call at this point is not necessary and could be harmful as it forces the usage of the user stack for the driver. All code depending on this distinction should only be executed from within the pthread. Issue #4537. --- repos/pc/src/drivers/wifi/pc/main.cc | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/repos/pc/src/drivers/wifi/pc/main.cc b/repos/pc/src/drivers/wifi/pc/main.cc index 4907315cef..4485a5c2dc 100644 --- a/repos/pc/src/drivers/wifi/pc/main.cc +++ b/repos/pc/src/drivers/wifi/pc/main.cc @@ -110,8 +110,6 @@ struct Main } }; -static Main *_main; - /** * Return shared-memory message buffer @@ -126,8 +124,5 @@ void *wifi_get_buffer(void) void Libc::Component::construct(Libc::Env &env) { - Libc::with_libc([&] () { - static Main server(env); - _main = &server; - }); + static Main server(env); }