lxip: do not whine on kfree(0)

This commit is contained in:
Christian Helmuth 2015-06-30 11:48:23 +02:00
parent de4a98c777
commit 49333bafc2

View File

@ -360,6 +360,8 @@ void *kcalloc(size_t n, size_t size, gfp_t flags)
void kfree(const void *p)
{
if (!p) return;
if (Malloc::mem()->inside((Genode::addr_t)p))
Malloc::mem()->free(p);
else