aboutsummaryrefslogtreecommitdiffstats
path: root/arch/um/drivers/mconsole_user.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/um/drivers/mconsole_user.c')
-rw-r--r--arch/um/drivers/mconsole_user.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/um/drivers/mconsole_user.c b/arch/um/drivers/mconsole_user.c
index 62e5ad63181a..f31e71546e52 100644
--- a/arch/um/drivers/mconsole_user.c
+++ b/arch/um/drivers/mconsole_user.c
@@ -86,8 +86,9 @@ int mconsole_get_request(int fd, struct mc_request *req)
86 int len; 86 int len;
87 87
88 req->originlen = sizeof(req->origin); 88 req->originlen = sizeof(req->origin);
89 req->len = recvfrom(fd, &req->request, sizeof(req->request), 0, 89 req->len = recvfrom(fd, &req->request, sizeof(req->request),
90 (struct sockaddr *) req->origin, &req->originlen); 90 MSG_DONTWAIT, (struct sockaddr *) req->origin,
91 &req->originlen);
91 if (req->len < 0) 92 if (req->len < 0)
92 return 0; 93 return 0;
93 94