devices: vhost-user crashes displaying show trace for deleted interface 37/22137/2
authorSteven Luong <sluong@cisco.com>
Thu, 15 Aug 2019 21:30:16 +0000 (14:30 -0700)
committerAndrew Yourtchenko <ayourtch@gmail.com>
Fri, 20 Sep 2019 05:47:48 +0000 (05:47 +0000)
commit69dd1f5bceae81b2b422a410db0f72d12043c97d
tree08024c92935d1008916281b1227caabe3672e25d
parent1d74eceb1f9ce20fcd9b9a4f9c9a21d03b697aeb
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
(cherry picked from commit 5cd987dda679fe50b9cd7a834bb9162db39ade78)
src/vnet/devices/virtio/vhost_user_inline.h