vhost: fix peer close check
authorRoland Qi <roland.qi@ucloud.cn>
Tue, 21 Apr 2020 08:59:39 +0000 (16:59 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 5 May 2020 13:54:26 +0000 (15:54 +0200)
commit41f32b052c78898d20d04913a7e205970b96309a
tree84eb3f6c9081d5e1fbc5cfe039efd32391262fcb
parentfd82f3972709cb9ec1ac84144a6cc31662f127f3
vhost: fix peer close check

In process_slave_message_reply(), there is a
possibility that receiving a peer close
message instead of a real message response.

This patch targeting to handle the peer close
scenario and report the correct error message.

Fixes: a277c7159876 ("vhost: refactor code structure")
Cc: stable@dpdk.org
Signed-off-by: Roland Qi <roland.qi@ucloud.cn>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
lib/librte_vhost/vhost_user.c