vhost: fix potential null pointer dereference
authorTiwei Bie <tiwei.bie@intel.com>
Fri, 22 Jun 2018 03:53:05 +0000 (11:53 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 2 Jul 2018 23:35:58 +0000 (01:35 +0200)
commitad0fdb696a96311629e14f43db39250a92f02e7d
tree489e4b7c61fc8c7f883e2078c7684c0b70da44a4
parente11411b52ae1e778fecaf0b896ff1f6aa4da7c99
vhost: fix potential null pointer dereference

Coverity issue: 293097
Fixes: d90cf7d111ac ("vhost: support host notifier")

Signed-off-by: Tiwei Bie <tiwei.bie@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
lib/librte_vhost/vhost_user.c