From dcf512adcdbb857f4350d875f69d8e190e949342 Mon Sep 17 00:00:00 2001 From: Mohsin Kazmi Date: Wed, 23 Sep 2020 19:29:20 +0000 Subject: [PATCH] vlib: fix the last error Type: fix Signed-off-by: Mohsin Kazmi Change-Id: I788678d85dfa1d5b99497013806047440028eb97 --- src/vlib/physmem_funcs.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 */ -- 2.16.6