Spdk/lib/vhost
Daniel Verkamp 50b4e54fd5 rte_vhost: fix numa_realloc() copy size
The rte_malloc_socket() call just above that allocates vq is only
allocating sizeof(*vq), but the memcpy() would have tried to copy
sizeof(*vq) * 2.

This code is under #ifdef RTE_LIBRTE_VHOST_NUMA, so it was not normally
enabled with DPDK 17.05, but it breaks when DPDK 17.08 turns on libnuma
support by default.

Change-Id: I020eb610d7e94c3346c25957722f4d9f1ecd370f
Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-on: https://review.gerrithub.io/377631
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
2017-09-11 12:46:45 -04:00
..
linux vhost: add copy of virtio headers 2017-03-23 13:51:04 -07:00
rte_vhost rte_vhost: fix numa_realloc() copy size 2017-09-11 12:46:45 -04:00
Makefile vhost: removed task.h/task.c 2017-06-30 16:32:47 -04:00
test_plan.md test/vhost: Update test plan for vhost 2017-07-25 15:48:46 -04:00
vhost_blk.c vhost: split iovs which span hugepage boundaries 2017-07-31 13:10:52 -04:00
vhost_internal.h vhost: split iovs which span hugepage boundaries 2017-07-31 13:10:52 -04:00
vhost_iommu.c vhost_iommu: handle realloc() failure 2017-07-13 15:47:33 -04:00
vhost_iommu.h include: Move the remainder of the code base to stdinc.h 2017-05-08 13:20:36 -07:00
vhost_rpc.c vhost: Make JSON-RPC parameter names as consistent as possible 2017-07-14 15:54:28 -04:00
vhost_scsi.c vhost: split iovs which span hugepage boundaries 2017-07-31 13:10:52 -04:00
vhost.c vhost: split iovs which span hugepage boundaries 2017-07-31 13:10:52 -04:00