Maxime Coquelin b0098b5e21 vhost: fix dereferencing invalid pointer after realloc
numa_realloc() reallocates the virtio_net device structure and
updates the vhost_devices[] table with the new pointer if the rings
are allocated different NUMA node.

Problem is that vhost_user_msg_handler() still dereferences old
pointer afterward.

This patch prevents this by fetching again the dev pointer in
vhost_devices[] after messages have been handled.

Fixes: af295ad4698c ("vhost: realloc device and queues to same numa node as vring desc")
Cc: stable@dpdk.org

Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Acked-by: Yuanhan Liu <yliu@fridaylinux.org>
2017-10-10 15:52:27 +02:00
..
2017-07-16 17:30:06 +02:00
2017-10-10 15:37:58 +02:00
2017-08-31 23:02:54 +02:00
2017-10-06 18:23:25 +02:00
2017-07-16 17:30:06 +02:00
2017-10-09 00:02:45 +02:00
2017-07-04 14:39:18 +02:00
2017-10-09 00:44:59 +02:00