Skip to contentSkip to conversation

xenpaging: don't try to log via xch if xc_interface_close fails

PATCH In review Ian Campbell 2 participants 2 messages Feb 17, 2016 – Feb 19, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xenpaging: don't try to log via xch if xc_interface_close fails

Since xch may not be valid (enough) any longer, xc_interface_close already logs anything of any use before it tears down the integrated logger so there is no need to log any further in the application via that path.

CID: 1056203

---
 tools/xenpaging/xenpaging.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
tools/xenpaging/xenpaging.c +1 -5
index 6157d3a..d0571ca 100644
@@ -550,11 +550,7 @@ static void xenpaging_teardown(struct xenpaging *paging)
     xs_close(paging->xs_handle);
 
     /* Close connection to Xen */
-    rc = xc_interface_close(xch);
-    if ( rc != 0 )
-    {
-        ERROR("Error closing connection to xen");
-    }
+    xc_interface_close(xch);
 }
 
 static void get_request(struct vm_event *vm_event, vm_event_request_t *req)
Signature · 1 line
2.1.4
Acked-by on v1 1/1
#1 lore raw

Ian Campbell writes ("[PATCH] xenpaging: don't try to log via xch if xc_interface_close fails"):

Quoted 6 lines

Since xch may not be valid (enough) any longer, xc_interface_close already logs anything of any use before it tears down the integrated logger so there is no need to log any further in the application via that path.

CID: 1056203

and queued.

Ian.