i40e: prevent null pointer exception in dump descriptor
authorShannon Nelson <shannon.nelson@intel.com>
Tue, 26 Nov 2013 10:49:26 +0000 (10:49 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 18 Dec 2013 06:41:34 +0000 (22:41 -0800)
commit29d0790ef3acd869bc392676a7623e5613ab33e8
tree31a28df3da6e71bf502db57976ac37437655cac3
parent3753cb240b13c29b706400bebf7cb941838593b6
i40e: prevent null pointer exception in dump descriptor

Check that rings were allocated before trying to reference them.

Change-Id: I33151e55ab7a7a305fecdb88ccb2709ac246b7c7
Signed-off-by: Shannon Nelson <shannon.nelson@intel.com>
Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_debugfs.c