Code Review
/
deb_dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
New upstream version 18.11.2
[deb_dpdk.git]
/
drivers
/
net
/
virtio
/
virtio_user
/
vhost_user.c
diff --git
a/drivers/net/virtio/virtio_user/vhost_user.c
b/drivers/net/virtio/virtio_user/vhost_user.c
index
2c6eba0
..
0a88d59
100644
(file)
--- a/
drivers/net/virtio/virtio_user/vhost_user.c
+++ b/
drivers/net/virtio/virtio_user/vhost_user.c
@@
-393,7
+393,10
@@
virtio_user_start_server(struct virtio_user_dev *dev, struct sockaddr_un *un)
return -1;
flag = fcntl(fd, F_GETFL);
- fcntl(fd, F_SETFL, flag | O_NONBLOCK);
+ if (fcntl(fd, F_SETFL, flag | O_NONBLOCK) < 0) {
+ PMD_DRV_LOG(ERR, "fcntl failed, %s", strerror(errno));
+ return -1;
+ }
return 0;
}