virtio: fix crash if CQ is not negotiated
authorDamjan Marion <damarion@cisco.com>
Mon, 25 May 2015 10:20:52 +0000 (12:20 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 12 Jun 2015 12:50:06 +0000 (14:50 +0200)
commit9e71668b42bd8af7f7cb12b2e8fb708c9c7a3aa5
treebaa73cbd55650bdb23d1c153b860200400d0d67d
parentd78deadae4dca240e85054bf2d604a801676becc
virtio: fix crash if CQ is not negotiated

Fix NULL dereference if virtio control queue is not negotiated.

Signed-off-by: Damjan Marion <damarion@cisco.com>
Acked-by: Stephen Hemminger <stephen@networkplumber.org>
drivers/net/virtio/virtio_ethdev.c