aboutsummaryrefslogtreecommitdiffstats
path: root/src/vlib
diff options
context:
space:
mode:
authorDave Barach <dave@barachs.net>2019-03-13 15:29:15 -0400
committerDave Barach <dave@barachs.net>2019-03-13 15:29:59 -0400
commita5160d7d1f0dda554960e1f0e9f7074bda256baa (patch)
tree235db392765869de1e9d52f358e70099c829da3c /src/vlib
parent3e94c419e3398e0c030ed0d3d3c72cac38397fe6 (diff)
VPP-1576: fix a set of coverity warnings
Change-Id: Ifd34aed8692d5acaa370d4976d974ac573e43705 Signed-off-by: Dave Barach <dave@barachs.net>
Diffstat (limited to 'src/vlib')
-rw-r--r--src/vlib/linux/vmbus.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/vlib/linux/vmbus.c b/src/vlib/linux/vmbus.c
index a359c10a71f..d0efbd748ef 100644
--- a/src/vlib/linux/vmbus.c
+++ b/src/vlib/linux/vmbus.c
@@ -299,7 +299,10 @@ vlib_vmbus_bind_to_uio (vlib_vmbus_addr_t * addr)
error = clib_sysfs_write ((char *) s, "%s", netvsc_uuid);
if (error)
- goto done;
+ {
+ close (fd);
+ goto done;
+ }
uio_new_id_needed = 0;