aboutsummaryrefslogtreecommitdiffstats
path: root/src/vlib/physmem_funcs.h
diff options
context:
space:
mode:
authorMohsin Kazmi <sykazmi@cisco.com>2020-09-23 19:29:20 +0000
committerDamjan Marion <dmarion@me.com>2020-09-24 11:17:24 +0000
commitdcf512adcdbb857f4350d875f69d8e190e949342 (patch)
treecc4e4d88c4875f10273bc940a31b8f1cec340e9e /src/vlib/physmem_funcs.h
parent17569cbeb25c7eba9cd818bea98448b11b05532c (diff)
vlib: fix the last error
Type: fix Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com> Change-Id: I788678d85dfa1d5b99497013806047440028eb97
Diffstat (limited to 'src/vlib/physmem_funcs.h')
-rw-r--r--src/vlib/physmem_funcs.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vlib/physmem_funcs.h b/src/vlib/physmem_funcs.h
index d93bae8fbe5..3e9208b4e95 100644
--- a/src/vlib/physmem_funcs.h
+++ b/src/vlib/physmem_funcs.h
@@ -109,7 +109,8 @@ vlib_physmem_get_pa (vlib_main_t * vm, void *mem)
always_inline clib_error_t *
vlib_physmem_last_error (struct vlib_main_t * vm)
{
- return clib_error_return (0, "unknown error");
+ clib_pmalloc_main_t *pm = vm->physmem_main.pmalloc_main;
+ return pm->error;
}
#endif /* included_vlib_physmem_funcs_h */