Signed-off-by: Wei Liu <wei.l...@citrix.com>
---
Cc: Ian Jackson <ian.jack...@eu.citrix.com>
Cc: Julien Grall <julien.gr...@arm.com>
Cc: Bhupinder Thakur <bhupinder.tha...@linaro.org>
---
 tools/console/daemon/io.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/console/daemon/io.c b/tools/console/daemon/io.c
index 2615b50a4d..afe162e9c2 100644
--- a/tools/console/daemon/io.c
+++ b/tools/console/daemon/io.c
@@ -1047,7 +1047,7 @@ static void handle_tty_write(struct console *con)
 
 static void console_evtchn_unmask(struct console *con, void *data)
 {
-       long long now = (long long)data;
+       long long now = *(long long *)data;
 
        if (!console_enabled(con))
                return;
@@ -1343,7 +1343,7 @@ void handle_io(void)
                   domains with new allowance */
                for (d = dom_head; d; d = d->next) {
 
-                       console_iter_void_arg2(d, console_evtchn_unmask, (void 
*)now);
+                       console_iter_void_arg2(d, console_evtchn_unmask, (void 
*)&now);
 
                        console_iter_void_arg2(d, maybe_add_console_evtchn_fd, 
                                               (void *)&next_timeout);
-- 
2.11.0


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

Reply via email to