numam-dpdk/drivers/net/virtio
Jianfeng Tan 3bd60a27e9 net/virtio: fix null pointer dereference
There is a logic bug in this code, that could lead to null pointer
dereference when cvq is NULL. Fix this problem by changing logic
&& to logic ||.

   >> CID 127480:  Null pointer dereferences  (FORWARD_NULL)
   >> Dereferencing null pointer "cvq".
   	if (!cvq && !cvq->vq) {
            ...
        }

Coverity issue: 127480
Fixes: 01ad44fd37 ("net/virtio: split Rx/Tx queue")

Signed-off-by: Jianfeng Tan <jianfeng.tan@intel.com>
Acked-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
2016-07-05 14:14:40 +02:00
..
virtio_user net/virtio-user: fix string unterminated 2016-07-05 13:30:25 +02:00
Makefile mk: fix internal dependencies 2016-06-29 13:33:01 +02:00
rte_pmd_virtio_version.map virtio: move to drivers/net/ 2015-05-22 16:06:23 +02:00
virtio_ethdev.c net/virtio: fix null pointer dereference 2016-07-05 14:14:40 +02:00
virtio_ethdev.h net/virtio-user: add virtual device 2016-06-22 09:47:12 +02:00
virtio_logs.h virtio: fix newline under debug mode 2016-05-10 10:52:01 -07:00
virtio_pci.c net/virtio: hide vring address check inside PCI ops 2016-06-22 09:47:12 +02:00
virtio_pci.h net/virtio-user: add new virtual PCI driver 2016-06-22 09:47:12 +02:00
virtio_ring.h net/virtio: fix used index retrieved only once 2016-06-22 09:47:12 +02:00
virtio_rxtx_simple.c net/virtio: fix used index retrieved only once 2016-06-22 09:47:12 +02:00
virtio_rxtx.c net/virtio: allow virtual address to fill vring descriptors 2016-06-22 09:47:12 +02:00
virtio_rxtx.h net/virtio: split Rx/Tx queue 2016-06-22 06:10:54 +02:00
virtio_user_ethdev.c net/virtio-user: fix resource leaks 2016-07-05 13:30:24 +02:00
virtqueue.c virtio: check virtqueue parameter when detaching 2015-07-19 22:24:42 +02:00
virtqueue.h net/virtio: allow virtual address to fill vring descriptors 2016-06-22 09:47:12 +02:00