mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-25 16:31:06 +00:00
wifi: don't use kzalloc directly
Avoid using wrong pointer when calling free_page() which causes otherwise memory corruption.
This commit is contained in:
parent
caef7d642a
commit
98fa0a1ad2
@ -326,7 +326,7 @@ void kfree_sensitive(const void *p)
|
|||||||
|
|
||||||
unsigned long get_zeroed_page(gfp_t gfp_mask)
|
unsigned long get_zeroed_page(gfp_t gfp_mask)
|
||||||
{
|
{
|
||||||
return (unsigned long)kzalloc(PAGE_SIZE, gfp_mask | __GFP_ZERO);
|
return (unsigned long)__alloc_pages(GFP_KERNEL, 0, 0, NULL)->virtual;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user