numam-dpdk/drivers
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
..
crypto crypto/qat: fix digest verification 2016-07-10 14:51:09 +02:00
net net/virtio: fix null pointer dereference 2016-07-05 14:14:40 +02:00
Makefile mk: fix build dependency of drivers on pmdinfogen 2016-07-08 12:04:02 +02:00