From 0c740a6d8a6c11b1af4ce704220c2c46628f0a89 Mon Sep 17 00:00:00 2001 From: Mohsin Kazmi Date: Tue, 5 Apr 2022 11:12:33 +0000 Subject: tap: fix the coverity warning Type: fix Signed-off-by: Mohsin Kazmi Change-Id: I609fb28e58286ff490d12384b03dd713830379b3 --- src/vnet/devices/tap/tap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vnet/devices/tap/tap.c b/src/vnet/devices/tap/tap.c index b7ccba92572..360c001b168 100644 --- a/src/vnet/devices/tap/tap.c +++ b/src/vnet/devices/tap/tap.c @@ -334,10 +334,10 @@ tap_create_if (vlib_main_t * vm, tap_create_if_args_t * args) args->error = clib_error_return_unix (0, "open '/dev/net/tun'"); goto error; } + vec_add1 (vif->tap_fds, qfd); _IOCTL (qfd, TUNSETIFF, (void *) &ifr); tap_log_dbg (vif, "TUNSETIFF fd %d name %s flags 0x%x", qfd, ifr.ifr_ifrn.ifrn_name, ifr.ifr_flags); - vec_add1 (vif->tap_fds, qfd); } for (i = 0; i < vif->num_rxqs; i++) -- cgit 1.2.3-korg