tap: fix the crash [VPP-1645] 88/18888/3
authorMohsin Kazmi <sykazmi@cisco.com>
Mon, 15 Apr 2019 11:17:55 +0000 (13:17 +0200)
committerDamjan Marion <dmarion@me.com>
Tue, 16 Apr 2019 15:53:49 +0000 (15:53 +0000)
commit6c2f821179ea8d8c848b33e180936c20479b57fc
tree90d3d3cbca1bf2b2b6704b1b6b32bb05a75205b6
parent58dcf5c5e6728250a61e9a498972d896308d9624
tap: fix the crash [VPP-1645]

Crash will happen when someone will try to setup a tap interface
in host namespace without providing the host side of tap interface
custom name. This patch fixes the problem by using the default name
in this case.

Change-Id: Ic1eaea5abd01bc6c766d0e0fcacae29ab7a7ec45
Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
(cherry picked from commit 2a6861ff7bc90c1518b68459210830052774d429)
src/vnet/devices/tap/tap.c