diff options
| author | Roger Pau Monné <royger@FreeBSD.org> | 2020-05-28 08:20:16 +0000 |
|---|---|---|
| committer | Roger Pau Monné <royger@FreeBSD.org> | 2020-05-28 08:20:16 +0000 |
| commit | 06592d60f00c39a465454df203fcabbdefadb57f (patch) | |
| tree | f4b20b69a365e4a45e03c466d73f995855e6265f /sys/dev/xen/control | |
| parent | 3e7df58df20ce49994edd2be2be0e2bce991c177 (diff) | |
Notes
Diffstat (limited to 'sys/dev/xen/control')
| -rw-r--r-- | sys/dev/xen/control/control.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/xen/control/control.c b/sys/dev/xen/control/control.c index 98ab5bf3a6b3..f569b04dd951 100644 --- a/sys/dev/xen/control/control.c +++ b/sys/dev/xen/control/control.c @@ -360,7 +360,7 @@ xctrl_on_watch_event(struct xs_watch *watch, const char **vec, unsigned int len) error = xs_read(XST_NIL, "control", "shutdown", &result_len, (void **)&result); - if (error != 0) + if (error != 0 || result_len == 0) return; /* Acknowledge the request by writing back an empty string. */ |
