mirror of
https://github.com/genodelabs/genode.git
synced 2025-02-20 09:46:20 +00:00
wifi_drv: implement vzalloc
This function is called by the rarely executed error handling code (iwl_mvm_fw_error_dump) of wifi.lib.so.
This commit is contained in:
parent
804fb4e10d
commit
96351801c9
@ -346,7 +346,6 @@ DUMMY(-1, ktime_sub)
|
||||
DUMMY(-1, sg_init_one)
|
||||
DUMMY(-1, vlan_hw_offload_capable)
|
||||
DUMMY(-1, vlan_tx_tag_get_id)
|
||||
DUMMY(-1, vzalloc)
|
||||
DUMMY(-1, tsk_restore_flags)
|
||||
DUMMY(-1, put_user)
|
||||
|
||||
|
@ -407,6 +407,17 @@ void *vmalloc(unsigned long size)
|
||||
}
|
||||
|
||||
|
||||
void *vzalloc(unsigned long size)
|
||||
{
|
||||
void *addr = vmalloc(size);
|
||||
|
||||
if (addr)
|
||||
memset(addr, 0, size);
|
||||
|
||||
return addr;
|
||||
}
|
||||
|
||||
|
||||
void vfree(const void *addr)
|
||||
{
|
||||
if (!addr) return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user