Commit 4d71b38ae8fa converted many error_setg() call sites to rdma_error_report(), but it forgot to convert a companion error_append_hint(). Since no guy doesn't set errp anymore in pvrdma_realize(), errp remains NULL and error_append_hint() does nothing.
Also error_append_hint() was a poor choice since its "intended use is adding helpful hints on the human user interface" and "not for clarifying a confusing error message". Call rdma_error_report() instead. Fixes: 4d71b38ae8fa "hw/rdma: Switch to generic error reporting way" Signed-off-by: Greg Kurz <gr...@kaod.org> --- hw/rdma/vmw/pvrdma_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/rdma/vmw/pvrdma_main.c b/hw/rdma/vmw/pvrdma_main.c index 3e36e130139c..d370ae07ca6a 100644 --- a/hw/rdma/vmw/pvrdma_main.c +++ b/hw/rdma/vmw/pvrdma_main.c @@ -667,7 +667,7 @@ static void pvrdma_realize(PCIDevice *pdev, Error **errp) out: if (rc) { pvrdma_fini(pdev); - error_append_hint(errp, "Device failed to load\n"); + rdma_error_report("Device failed to load"); } }