mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-31 00:24:51 +00:00
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.
This commit is contained in:
parent
a90abbc22e
commit
1ca2265fd4
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user