[dpdk-dev] [PATCH] net/virtio: fix crash on null dereference

2016-07-22 Thread Thomas Monjalon
2016-07-19 10:39, Yuanhan Liu: > The rxq/txq for the queue_release callback could be NULL, say when > rte_eth_dev_configure() fails that the queue is not setup at all. > > Do a simple NULL check would fix the crash issue. > > Fixes: 01ad44fd374f ("net/virtio: split Rx/Tx queue") > > Reported-by:

[dpdk-dev] [PATCH] net/virtio: fix crash on null dereference

2016-07-19 Thread Yuanhan Liu
The rxq/txq for the queue_release callback could be NULL, say when rte_eth_dev_configure() fails that the queue is not setup at all. Do a simple NULL check would fix the crash issue. Fixes: 01ad44fd374f ("net/virtio: split Rx/Tx queue") Reported-by: Olivier Matz Signed-off-by: Yuanhan Liu ---