tapv2: coverity woe 90/16590/2
authorSteven <sluong@cisco.com>
Fri, 21 Dec 2018 20:42:34 +0000 (12:42 -0800)
committerDamjan Marion <dmarion@me.com>
Sat, 22 Dec 2018 11:50:40 +0000 (11:50 +0000)
commit27ca2982e1ac5c6f6a980f40c0906f8d8fb857ef
tree9f06912ceca9a5911f2bb8196988f20c963aede4
parentb9894ee69f6ba9c6a8eeb531d528e656b2a07812
tapv2: coverity woe

coverity complains about fd leaking inside the if statement because there is
a goto which bypasses the statement close (fd).

The fix is to close (fd) immediately after it is no longer used.

Change-Id: Ic5035b07ec1f179ff3db77744843e47aa8067a3c
Signed-off-by: Steven <sluong@cisco.com>
src/vnet/devices/tap/tap.c