wifi: don't use kzalloc directly

Avoid using wrong pointer when calling free_page() which causes
otherwise memory corruption.
This commit is contained in:
Alexander Boettcher 2023-02-02 11:17:34 +01:00 committed by Christian Helmuth
parent caef7d642a
commit 98fa0a1ad2

View File

@ -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;
} }