vhost: fix realloc failure
authorTomasz Kulasek <tomaszx.kulasek@intel.com>
Fri, 9 Feb 2018 17:19:00 +0000 (18:19 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 30 Mar 2018 12:08:42 +0000 (14:08 +0200)
commit7afa2e4538c1740391e40e018fb3ecafd53603cc
tree114da2c6ab0596c8374019b62593c570d871f5ad
parentace7b6b7859e1dc410589610a8e436c1a3b430f3
vhost: fix realloc failure

When reallocation of guest pages fails, vhost_user_set_mem_table() also
should fail.

Fixes: e246896178e6 ("vhost: get guest/host physical address mappings")
Cc: stable@dpdk.org
Signed-off-by: Ziye Yang <ziye.yang@intel.com>
Signed-off-by: Tomasz Kulasek <tomaszx.kulasek@intel.com>
Reviewed-by: Jianfeng Tan <jianfeng.tan@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
lib/librte_vhost/vhost_user.c