[xen master] xl: don't ignore return value from libxl_device_events_handler

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[xen master] xl: don't ignore return value from libxl_device_events_handler

patchbot
commit 6cde97e33d4b53f460b1b2fd0940ab99d3edea4e
Author:     Wei Liu <[hidden email]>
AuthorDate: Fri May 12 11:02:58 2017 +0100
Commit:     Wei Liu <[hidden email]>
CommitDate: Fri May 12 11:02:58 2017 +0100

    xl: don't ignore return value from libxl_device_events_handler
   
    That function can return a whole slew of error codes. Translate them
    to EXIT_FAILURE.
   
    Signed-off-by: Wei Liu <[hidden email]>
    Acked-by: Roger Pau Monné <[hidden email]>
    Acked-by: Ian Jackson <[hidden email]>
    Release-acked-by: Julien Grall <[hidden email]>
---
 tools/xl/xl_misc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/xl/xl_misc.c b/tools/xl/xl_misc.c
index 9037e2b..9c6227a 100644
--- a/tools/xl/xl_misc.c
+++ b/tools/xl/xl_misc.c
@@ -182,7 +182,7 @@ int main_devd(int argc, char **argv)
         }
     }
 
-    libxl_device_events_handler(ctx, 0);
+    ret = libxl_device_events_handler(ctx, 0) ? EXIT_FAILURE : EXIT_SUCCESS;
 
 out:
     return ret;
--
generated by git-patchbot for /home/xen/git/xen.git#master


_______________________________________________
Xen-changelog mailing list
[hidden email]
https://lists.xenproject.org/xen-changelog