vhost: check memory map before address translation
authorPavel Fedin <p.fedin@samsung.com>
Wed, 13 Jan 2016 07:32:57 +0000 (10:32 +0300)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Sun, 21 Feb 2016 10:17:48 +0000 (11:17 +0100)
commit2f29ce885a999549324c4189796a0688e0c9b653
treebe8c25e3e4899b363bcd18c6e28cbe2f0c245fa9
parenta90ca1a12eb560f0ca8e76a6b116cd1fc9ac0439
vhost: check memory map before address translation

Malfunctioning virtio clients may not send VHOST_USER_SET_MEM_TABLE for
some reason. This causes NULL dereference in qva_to_vva().

Signed-off-by: Pavel Fedin <p.fedin@samsung.com>
Acked-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
lib/librte_vhost/virtio-net.c