tap: fix coverity warning 205875 30/23630/2
authorAndrew Yourtchenko <ayourtch@gmail.com>
Mon, 25 Nov 2019 18:25:46 +0000 (18:25 +0000)
committerFlorin Coras <florin.coras@gmail.com>
Mon, 25 Nov 2019 20:30:37 +0000 (20:30 +0000)
commit0d3d4824a46205e776ff32c82be4cb514f459a5f
tree1490a7d9f97867670b03321e23b8d0d14f141eb0
parent599db9e9d0c61ac39b16cc572f975cdc70c07783
tap: fix coverity warning 205875

check the return result from fcntl, and if error, behave
the same way the expansion of _IOCTL macro does.

Type: fix
Change-Id: I6d537d1bdedae64470612aef64b46e07387fe84b
Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
src/vnet/devices/tap/tap.c