commit | 1ba0fa4bfa3dcc9bd754b8b0b6a7c5045f9ba0dd | [log] [tgz] |
---|---|---|
author | Damjan Marion <damarion@cisco.com> | Sun Mar 04 17:19:08 2018 +0100 |
committer | Damjan Marion <damarion@cisco.com> | Mon Mar 05 11:34:16 2018 +0100 |
tree | 240c195346d726c7833e33b2b12f1648b4dc77d3 | |
parent | d5ded2df0ff06fe9178696657ee53a31f7e4c81c [diff] [blame] |
vlib: vfio code rework Change-Id: I99cf3e7cc991aa7d32385a155c707a6516516117 Signed-off-by: Damjan Marion <damarion@cisco.com>
diff --git a/src/vlib/physmem_funcs.h b/src/vlib/physmem_funcs.h index dbb8d9d..0013c2f 100644 --- a/src/vlib/physmem_funcs.h +++ b/src/vlib/physmem_funcs.h
@@ -121,7 +121,8 @@ vlib_physmem_free (vlib_main_t * vm, vlib_physmem_region_index_t idx, void *mem) { - return vm->os_physmem_free (vm, idx, mem); + if (mem) + vm->os_physmem_free (vm, idx, mem); } always_inline u64