diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/um/drivers/mconsole_user.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/um/drivers/mconsole_user.c b/arch/um/drivers/mconsole_user.c index 430c024a19b..13af2f03ed8 100644 --- a/arch/um/drivers/mconsole_user.c +++ b/arch/um/drivers/mconsole_user.c | |||
@@ -83,9 +83,8 @@ int mconsole_get_request(int fd, struct mc_request *req) | |||
83 | int len; | 83 | int len; |
84 | 84 | ||
85 | req->originlen = sizeof(req->origin); | 85 | req->originlen = sizeof(req->origin); |
86 | req->len = recvfrom(fd, &req->request, sizeof(req->request), | 86 | req->len = recvfrom(fd, &req->request, sizeof(req->request), 0, |
87 | MSG_DONTWAIT, (struct sockaddr *) req->origin, | 87 | (struct sockaddr *) req->origin, &req->originlen); |
88 | &req->originlen); | ||
89 | if (req->len < 0) | 88 | if (req->len < 0) |
90 | return 0; | 89 | return 0; |
91 | 90 | ||