virtio: fix crash if VIRTIO_NET_F_CTRL_VQ is not negotiated
authorDamjan Marion <damarion@cisco.com>
Thu, 11 Sep 2014 22:25:08 +0000 (15:25 -0700)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 1 Oct 2014 09:47:56 +0000 (11:47 +0200)
commitd68e2ae56b27026c4518a119f2ab53c9fe164c46
tree9a33bb5ab265424aba1ab3ae18f9ff19cf39841e
parente88c3b0a591b12609086a0a57878d55e2a135c4d
virtio: fix crash if VIRTIO_NET_F_CTRL_VQ is not negotiated

If VIRTIO_NET_F_CTRL_VQ is not negotiated hw->cvq will be NULL

Signed-off-by: Damjan Marion <damarion@cisco.com>
Acked-by: Changchun Ouyang <Changchun.ouyang@intel.com>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
lib/librte_pmd_virtio/virtio_rxtx.c