mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-03 04:26:45 +00:00
lxip: do not whine on kfree(0)
This commit is contained in:
parent
de4a98c777
commit
49333bafc2
@ -360,6 +360,8 @@ void *kcalloc(size_t n, size_t size, gfp_t flags)
|
|||||||
|
|
||||||
void kfree(const void *p)
|
void kfree(const void *p)
|
||||||
{
|
{
|
||||||
|
if (!p) return;
|
||||||
|
|
||||||
if (Malloc::mem()->inside((Genode::addr_t)p))
|
if (Malloc::mem()->inside((Genode::addr_t)p))
|
||||||
Malloc::mem()->free(p);
|
Malloc::mem()->free(p);
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user