mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-06 13:55:08 +08:00
ixgbe: Handle previously-freed msix_entries
The msix_entries memory can be freed by a previous suspend or remove, so don't crash on close when it isn't there. Signed-off-by: Mark Rustad <mark.d.rustad@intel.com> Tested-by: Krishneil Singh <krishneil.k.singh@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:
parent
2916500db3
commit
1fa7125277
@ -3070,6 +3070,9 @@ static void ixgbe_free_irq(struct ixgbe_adapter *adapter)
|
||||
return;
|
||||
}
|
||||
|
||||
if (!adapter->msix_entries)
|
||||
return;
|
||||
|
||||
for (vector = 0; vector < adapter->num_q_vectors; vector++) {
|
||||
struct ixgbe_q_vector *q_vector = adapter->q_vector[vector];
|
||||
struct msix_entry *entry = &adapter->msix_entries[vector];
|
||||
|
Loading…
Reference in New Issue
Block a user