From: Mohsin Kazmi Date: Tue, 5 Apr 2022 11:12:33 +0000 (+0000) Subject: tap: fix the coverity warning X-Git-Tag: v22.10-rc0~133 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=0c740a6d8a6c11b1af4ce704220c2c46628f0a89;p=vpp.git tap: fix the coverity warning Type: fix Signed-off-by: Mohsin Kazmi Change-Id: I609fb28e58286ff490d12384b03dd713830379b3 --- 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++)