]> git.baikalelectronics.ru Git - kernel.git/commit
i40e: don't free nonexistent rings
authorMitch Williams <mitch.a.williams@intel.com>
Sat, 28 Sep 2013 07:13:13 +0000 (07:13 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 22 Oct 2013 12:33:43 +0000 (05:33 -0700)
commit1d3313f3665707551ffd8a5c41aa0b09345818b5
treebd8b6ddd7937ecde8c53ff5577a9a4a3ba604d30
parent86f0da6c3a39a1b01008ae10f04232824afede89
i40e: don't free nonexistent rings

Not all VSIs have rings! Check to see if rings were actually allocated before
freeing them.

This prevents a panic when tx_rings[0] is not allocated.

Signed-off-by: Mitch Williams <mitch.a.williams@intel.com>
Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Tested-by: Sibai Li <sibai.li@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_main.c