i40e: fix null dereference
authorJesse Brandeburg <jesse.brandeburg@intel.com>
Sat, 14 Dec 2013 11:26:45 +0000 (03:26 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 15 Dec 2013 03:59:41 +0000 (22:59 -0500)
commit3c325ced6aefa72d43a54e324df7562564c26f91
tree40162d132d29d1620e817a4911ee483ea30f8527
parenta3314f3d40215349ab2427800c1e10676691389f
i40e: fix null dereference

If the vsi->tx_rings structure is NULL we don't want to panic.

Change-Id: Ic694f043701738c434e8ebe0caf0673f4410dc10
Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Tested-by: Kavindya Deegala <kavindya.s.deegala@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/intel/i40e/i40e_main.c