virtio: fix crash when releasing null queue
authorBernard Iremonger <bernard.iremonger@intel.com>
Tue, 20 Oct 2015 15:37:41 +0000 (16:37 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 20 Oct 2015 21:29:37 +0000 (23:29 +0200)
commitce8e121870d21e5ad5c6d1a21d0214e95e7a2fd2
treede905ef4aa88746edd3eb783000e1be868137f95
parentfd6949c55c9a48e81c625138679159829d51ac51
virtio: fix crash when releasing null queue

if input parameter vq is NULL, hw = vq->hw, causes a segmentation fault.

Signed-off-by: Bernard Iremonger <bernard.iremonger@intel.com>
Acked-by: Stephen Hemminger <stephen@networkplumber.org>
doc/guides/rel_notes/release_2_2.rst
drivers/net/virtio/virtio_ethdev.c