diff options
author | Mike Belopuhov <mikeb@cvs.openbsd.org> | 2016-08-05 18:12:49 +0000 |
---|---|---|
committer | Mike Belopuhov <mikeb@cvs.openbsd.org> | 2016-08-05 18:12:49 +0000 |
commit | e22103c24c66d3dd321cb18d6559f9c21a3f0d4a (patch) | |
tree | 28cced7f47d17cc7f91c8d16b5380ebc7a1f17b6 /sys/dev/pv/hyperv.c | |
parent | 694a73747a11d988c9ca3b3df199a64289612e21 (diff) |
Fixup incorrect EAGAIN handling
Diffstat (limited to 'sys/dev/pv/hyperv.c')
-rw-r--r-- | sys/dev/pv/hyperv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/pv/hyperv.c b/sys/dev/pv/hyperv.c index 1e5966934fb..1aba89795e1 100644 --- a/sys/dev/pv/hyperv.c +++ b/sys/dev/pv/hyperv.c @@ -1684,7 +1684,7 @@ hv_service_common(struct hv_channel *ch, uint32_t *rlen, uint64_t *rid, int rv; rv = hv_channel_recv(ch, ch->ch_buf, ch->ch_buflen, rlen, rid, 0); - if ((rv && rv != EAGAIN) || *rlen == 0) + if (rv || *rlen == 0) return (rv); *hdr = (struct hv_icmsg_hdr *)&ch->ch_buf[sizeof(struct hv_pipe_hdr)]; if ((*hdr)->icmsgtype == HV_ICMSGTYPE_NEGOTIATE) { |