diff options
author | Michael Chan | 2019-05-23 01:12:55 +0200 |
---|---|---|
committer | David S. Miller | 2019-05-23 03:02:14 +0200 |
commit | 1b3f0b75c39f534278a895c117282014e9d0ae1f (patch) | |
tree | 2d8e8f458df5991691dbe8ca5c1fe1ceffbdbcf4 /drivers/net/ethernet/wiznet | |
parent | bnxt_en: Fix aggregation buffer leak under OOM condition. (diff) | |
download | kernel-qcow2-linux-1b3f0b75c39f534278a895c117282014e9d0ae1f.tar.gz kernel-qcow2-linux-1b3f0b75c39f534278a895c117282014e9d0ae1f.tar.xz kernel-qcow2-linux-1b3f0b75c39f534278a895c117282014e9d0ae1f.zip |
bnxt_en: Fix possible BUG() condition when calling pci_disable_msix().
When making configuration changes, the driver calls bnxt_close_nic()
and then bnxt_open_nic() for the changes to take effect. A parameter
irq_re_init is passed to the call sequence to indicate if IRQ
should be re-initialized. This irq_re_init parameter needs to
be included in the bnxt_reserve_rings() call. bnxt_reserve_rings()
can only call pci_disable_msix() if the irq_re_init parameter is
true, otherwise it may hit BUG() because some IRQs may not have been
freed yet.
Fixes: 41e8d7983752 ("bnxt_en: Modify the ring reservation functions for 57500 series chips.")
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/wiznet')
0 files changed, 0 insertions, 0 deletions