devices: vhost-user crashes displaying show trace for deleted interface 41/21341/2
authorSteven Luong <sluong@cisco.com>
Thu, 15 Aug 2019 21:30:16 +0000 (14:30 -0700)
committerDave Barach <openvpp@barachs.net>
Fri, 16 Aug 2019 19:52:30 +0000 (19:52 +0000)
commit5cd987dda679fe50b9cd7a834bb9162db39ade78
tree2016a2cf7160b7ffde98f50d13b3625064164f7a
parentecd1fc7dfa6a36d1774f71093380b3548a22346b
devices: vhost-user crashes displaying show trace for deleted interface

After the trace is collected and if the interface is then deleted, show
trace may crash for the debug image. This is due to the additional check
in pool_elt_at_index() to make sure that the block is not free.

The fix is to do the check in vhost format trace and return "interface deleted"

Type: fix

Signed-off-by: Steven Luong <sluong@cisco.com>
Change-Id: I0744f913ba6146609663443f408d784067880f93
src/vnet/devices/virtio/vhost_user_inline.h