diff options
author | Mohsin Kazmi <sykazmi@cisco.com> | 2022-04-05 11:12:33 +0000 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2022-04-05 14:23:02 +0000 |
commit | 0c740a6d8a6c11b1af4ce704220c2c46628f0a89 (patch) | |
tree | 0feb2d1bc91b74d5f46262fcae784bd0ce1a406a /src/vnet/devices/tap | |
parent | 61a2c8939d188ce2fc033695fe6dbf84b4ad61a6 (diff) |
tap: fix the coverity warning
Type: fix
Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
Change-Id: I609fb28e58286ff490d12384b03dd713830379b3
Diffstat (limited to 'src/vnet/devices/tap')
-rw-r--r-- | src/vnet/devices/tap/tap.c | 2 |
1 files changed, 1 insertions, 1 deletions
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++) |