net/ixgbe: fix segfault in configuring VF VLAN strip
authorWei Dai <wei.dai@intel.com>
Mon, 16 Apr 2018 08:14:25 +0000 (16:14 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 27 Apr 2018 14:54:56 +0000 (15:54 +0100)
commit9a7a9072e7cd1745750bb63a3d02f053b2a830c3
tree68312506cad4d0d590222dc81e835b1b386d9282
parent03c81b55d860ed1b72aae8f640e15a71e4f6d302
net/ixgbe: fix segfault in configuring VF VLAN strip

This patch fixes a segment fault in ixgbevf_vlan_offload_set( )
when a Rx queue with index < max_rx_queues is not setup.
For such queue, rxq = dev->data->rx_queues[i] is null pointer.

Fixes: 860a94d3c692 ("net/ixgbe: support VLAN strip per queue offloading in VF")

Signed-off-by: Wei Dai <wei.dai@intel.com>
Tested-by: Xueqin Lin <xueqin.lin@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/ixgbe/ixgbe_ethdev.c