numam-dpdk/drivers
Didier Pallard 43ec842ca4 net/virtio: fix incorrect cast
The rx_queues and tx_queues fields of the data structure points to a
struct virtnet_rx or virtnet_tx. Casting it to a virtqueue is an error.

It does not trigger any bug because pointer is not dereferenced inside
the function, but it can become a bug if this code is copy/pasted and
vq is dereferenced.

Fixes: 01ad44fd37 ("net/virtio: split Rx/Tx queue")
Cc: stable@dpdk.org

Signed-off-by: Didier Pallard <didier.pallard@6wind.com>
Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Acked-by: Yuanhan Liu <yliu@fridaylinux.org>
2018-01-16 18:47:49 +01:00
..
bus net/dpaa2: optimize Tx path for best case 2018-01-16 18:47:49 +01:00
crypto bus/fslmc: support dynamic IOVA 2018-01-16 18:47:49 +01:00
event drivers: use SPDX tag for Cavium copyright files 2018-01-09 16:19:01 +01:00
mempool mempool/octeontx: fix memory area registration 2018-01-12 18:32:05 +01:00
net net/virtio: fix incorrect cast 2018-01-16 18:47:49 +01:00
Makefile drivers: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00