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 17.11-rc3
[deb_dpdk.git]
/
lib
/
librte_eal
/
linuxapp
/
eal
/
eal_vfio_mp_sync.c
diff --git
a/lib/librte_eal/linuxapp/eal/eal_vfio_mp_sync.c
b/lib/librte_eal/linuxapp/eal/eal_vfio_mp_sync.c
index
7e8095c
..
b53ed7e
100644
(file)
--- a/
lib/librte_eal/linuxapp/eal/eal_vfio_mp_sync.c
+++ b/
lib/librte_eal/linuxapp/eal/eal_vfio_mp_sync.c
@@
-49,12
+49,12
@@
#endif
#include <rte_log.h>
#endif
#include <rte_log.h>
-#include <rte_pci.h>
#include <rte_eal_memconfig.h>
#include <rte_malloc.h>
#include <rte_eal_memconfig.h>
#include <rte_malloc.h>
+#include <rte_vfio.h>
#include "eal_filesystem.h"
#include "eal_filesystem.h"
-#include "eal_
pci_init
.h"
+#include "eal_
vfio
.h"
#include "eal_thread.h"
/**
#include "eal_thread.h"
/**
@@
-301,7
+301,8
@@
vfio_mp_sync_thread(void __rte_unused * arg)
vfio_mp_sync_send_request(conn_sock, SOCKET_ERR);
else
vfio_mp_sync_send_fd(conn_sock, fd);
vfio_mp_sync_send_request(conn_sock, SOCKET_ERR);
else
vfio_mp_sync_send_fd(conn_sock, fd);
- close(fd);
+ if (fd >= 0)
+ close(fd);
break;
case SOCKET_REQ_GROUP:
/* wait for group number */
break;
case SOCKET_REQ_GROUP:
/* wait for group number */