Go to file
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
app app/test: remove useless clock estimation 2016-07-10 16:19:56 +02:00
buildtools pmdinfogen: fix build on FreeBSD 2016-07-10 14:51:09 +02:00
config net/virtio-user: fix missing default config value 2016-07-04 04:08:41 +02:00
doc doc: explain virtio Rx/Tx functions 2016-07-05 13:30:25 +02:00
drivers net/virtio: fix null pointer dereference 2016-07-05 14:14:40 +02:00
examples examples: fix dependencies on hash library 2016-07-10 16:23:13 +02:00
lib vhost: fix potential null pointer dereference 2016-07-04 04:08:41 +02:00
mk mk: fix verbose pmdinfogen run 2016-07-08 17:07:05 +02:00
pkg version: 16.04 2016-04-11 23:56:34 +02:00
scripts scripts: add more git log capitalization checks 2016-07-10 17:01:02 +02:00
tools tools: fix pmdinfo for FreeBSD 2016-07-10 14:51:09 +02:00
.gitignore init DPDK repository 2013-03-07 10:57:42 +01:00
GNUmakefile pmdinfogen: add buildtools and pmdinfogen utility 2016-07-06 22:34:39 +02:00
LICENSE.GPL doc: GPL/LGPL licenses 2013-07-25 14:43:06 +02:00
LICENSE.LGPL doc: fix file format (dos to unix) 2013-09-06 11:43:07 +02:00
MAINTAINERS maintainers: add section for pmdinfo 2016-07-08 17:48:15 +02:00
Makefile remove trailing whitespaces 2014-06-11 00:29:34 +02:00
README doc: add readme file 2015-12-13 22:06:58 +01:00

DPDK is a set of libraries and drivers for fast packet processing.
It supports many processor architectures and both FreeBSD and Linux.

The DPDK uses the Open Source BSD license for the core libraries and
drivers. The kernel components are GPLv2 licensed.

Please check the doc directory for release notes,
API documentation, and sample application information.

For questions and usage discussions, subscribe to: users@dpdk.org
Report bugs and issues to the development mailing list: dev@dpdk.org